Skip to content

Commit

Permalink
Merge pull request #582 from fractal-analytics-platform/update-lock
Browse files Browse the repository at this point in the history
Update `poetry.lock` and fix tests
  • Loading branch information
tcompa authored Jan 8, 2024
2 parents 467c27d + a739a75 commit 0974a63
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Expose verification-related features in `user edit` command (\#580).
* Testing:
* Adapt `job_factory` to new strict response-validation models in `fractal-server` (\#580).
* Adapt `job_factory` by including the `timestamp_created` attribute (\#582).

# 1.4.0

Expand Down
14 changes: 7 additions & 7 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 8 additions & 4 deletions tests/fixtures_testserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,7 @@ async def _workflow_factory(**wf_args_override):
@pytest.fixture
async def job_factory(db):
from fractal_server.app.models.job import ApplyWorkflow
from datetime import datetime
from datetime import timezone
from fractal_server.utils import get_timestamp

async def _job_factory(**job_args_override):
job_args = dict(
Expand All @@ -196,8 +195,13 @@ async def _job_factory(**job_args_override):
project_id=1,
resource_list=[dict(path="/tmp", id=1, dataset_id=2)],
),
project_dump=dict(id=1, name="proj", read_only=True),
start_timestamp=datetime.now(tz=timezone.utc),
project_dump=dict(
id=1,
name="proj",
read_only=True,
timestamp_created=str(get_timestamp()),
),
start_timestamp=get_timestamp(),
user_email="[email protected]",
)
job_args.update(job_args_override)
Expand Down

0 comments on commit 0974a63

Please sign in to comment.