refactor: Clean up DB sessions consistently #2231
Annotations
10 errors and 2 warnings
quetz/tests/test_dao.py#L203
test_increment_download_count
assert 1 == 2
+ where 1 = PackageVersionMetric(metric_name=download, period=H, timestamp=2020-10-01 10:00:00,count=1).count
|
quetz/tests/test_jobs.py#L301
test_restart_worker_process[None]
AssertionError: assert <TaskStatus.r...ng: 'running'> == <TaskStatus.failed: 'failed'>
- failed
+ running
|
quetz/tests/test_jobs.py#L301
test_restart_worker_process[*]
AssertionError: assert <TaskStatus.r...ng: 'running'> == <TaskStatus.failed: 'failed'>
- failed
+ running
|
quetz/tests/test_jobs.py#L643
test_post_new_job_from_plugin[quetz-dummyplugin:dummy_func-owner]
AssertionError: assert <JobStatus.running: 'running'> == <JobStatus.success: 'success'>
- success
+ running
|
quetz/tests/test_jobs.py#L643
test_post_new_job_from_plugin[quetz-dummyplugin:dummy_job-owner]
AssertionError: assert <JobStatus.running: 'running'> == <JobStatus.success: 'success'>
- success
+ running
|
quetz/tests/test_jobs.py#L667
test_post_new_job_with_handler[owner]
AssertionError: assert <JobStatus.running: 'running'> == <JobStatus.success: 'success'>
- success
+ running
|
quetz/tests/test_jobs.py#L897
test_run_action_handler
AssertionError: expected call not found.
Expected: mock(my_arg=1)
Actual: mock(dao=<quetz.dao.Dao object at 0x7fa13b802870>, my_arg=1)
pytest introspection follows:
Kwargs:
assert ***'dao': <quet..., 'my_arg': 1*** == ***'my_arg': 1***
Omitting 1 identical items, use -vv to show
Left contains 1 more item:
***'dao': <quetz.dao.Dao object at 0x7fa13b802870>***
Full diff:
- ***'my_arg': 1***
+ ***'dao': <quetz.dao.Dao object at 0x7fa13b802870>, 'my_arg': 1***
|
quetz/tests/test_jobs.py#L1007
test_run_periodic_package_version_job[start_date0]
AssertionError: assert <TaskStatus.failed: 'failed'> == <TaskStatus.s...ss: 'success'>
- success
+ failed
|
quetz/tests/test_jobs.py#L1007
test_run_periodic_package_version_job[None]
AssertionError: assert <TaskStatus.failed: 'failed'> == <TaskStatus.s...ss: 'success'>
- success
+ failed
|
quetz/tests/api/test_channels.py#L683
test_register_mirror
AssertionError: assert [***'api_endpoi.../my-channel'***] == []
Left contains one more item: ***'api_endpoint': 'http://mirror_url/api/channels/my-channel', 'id': '15bcc73e-fdd2-43a1-8632-280c56bb10a3', 'metrics_endpoint': 'http://mirror_url/metrics/channels/my-channel', 'url': 'http://mirror_url/get/my-channel'***
Full diff:
[
- ,
+ ***'api_endpoint': 'http://mirror_url/api/channels/my-channel',
+ 'id': '15bcc73e-fdd2-43a1-8632-280c56bb10a3',
+ 'metrics_endpoint': 'http://mirror_url/metrics/channels/my-channel',
+ 'url': 'http://mirror_url/get/my-channel'***,
]
|
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
This job failed
Loading