Changeset View
Changeset View
Standalone View
Standalone View
swh/lister/functional_package/tests/test_lister.py
- This file was added.
# Copyright (C) 2019 the Software Heritage developers | |||||
# License: GNU General Public License version 3, or any later version | |||||
# See top-level LICENSE file for more information | |||||
def test_lister_no_page_check_results(lister_functional_package, | |||||
requests_mock_datadir): | |||||
lister = lister_functional_package | |||||
lister.run() | |||||
ardumont: You can remove this. | |||||
r = lister.scheduler.search_tasks(task_type='load-archive-files') | |||||
Not Done Inline Actionstest must be failing because of the old load-tar reference here, if you change that to load-archive-files, you should find what you listed ;) ardumont: test must be failing because of the old load-tar reference here, if you change that to load… | |||||
assert len(r) == 6 | |||||
for row in r: | |||||
assert row['type'] == 'load-archive-files' | |||||
Not Done Inline Actionserf, i missed that one as well :/ ardumont: erf, i missed that one as well :/ | |||||
Done Inline Actionshéhé, you are not the only one! lewo: héhé, you are not the only one!
I'm actually no longer able to run tests locally. I need to… | |||||
Not Done Inline ActionsHave you tried running tox --recreate (or -r for short)? ardumont: Have you tried running `tox --recreate` (or `-r` for short)?
| |||||
# arguments check | |||||
Done Inline ActionsPlease remove the print when you are done debugging ;) ardumont: Please remove the print when you are done debugging ;) | |||||
args = row['arguments']['args'] | |||||
assert len(args) == 0 | |||||
# kwargs | |||||
kwargs = row['arguments']['kwargs'] | |||||
assert list(kwargs.keys()) == ['url', | |||||
'artifacts', | |||||
'identity_artifact_keys'] | |||||
Done Inline ActionsIf you adapt according to my remarks, this need to change as well. ardumont: If you adapt according to my remarks, this need to change as well. | |||||
assert row['policy'] == 'oneshot' |
You can remove this.