Skip to content

Commit

Permalink
fix: Add Actual 24.10.0 on tests and missing preferences table. (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
bvanelli authored Oct 4, 2024
1 parent 8090b83 commit 433e031
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions actual/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,11 @@ def balance(self) -> decimal.Decimal:
return decimal.Decimal(value) / 100


class Preferences(BaseModel, table=True):
id: Optional[str] = Field(default=None, sa_column=Column("id", Text, primary_key=True))
value: Optional[str] = Field(default=None, sa_column=Column("value", Text))


class ReflectBudgets(SQLModel, table=True):
__tablename__ = "reflect_budgets"

Expand Down
2 changes: 1 addition & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
services:
actual:
container_name: actual
image: docker.io/actualbudget/actual-server:24.9.0
image: docker.io/actualbudget/actual-server:24.10.0
ports:
- '5006:5006'
volumes:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
)


@pytest.fixture(params=["24.8.0", "24.9.0"]) # todo: support multiple versions at once
@pytest.fixture(params=["24.8.0", "24.9.0", "24.10.0"]) # todo: support multiple versions at once
def actual_server(request):
# we test integration with the 5 latest versions of actual server
with DockerContainer(f"actualbudget/actual-server:{request.param}").with_exposed_ports(5006) as container:
Expand Down

0 comments on commit 433e031

Please sign in to comment.