Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7123384
D8695.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D8695.diff
View Options
diff --git a/swh/provenance/tests/test_journal_client.py b/swh/provenance/tests/test_journal_client.py
--- a/swh/provenance/tests/test_journal_client.py
+++ b/swh/provenance/tests/test_journal_client.py
@@ -70,8 +70,8 @@
}
# call the cli 'swh provenance origin from-journal'
- result = invoke(["origin", "from-journal"], config=cfg)
- assert result.exit_code == 0, f"Unexpected result: {result.output}"
+ cli_result = invoke(["origin", "from-journal"], config=cfg)
+ assert cli_result.exit_code == 0, f"Unexpected result: {cli_result.output}"
origin_sha1 = MultiHash.from_data(
origin_url.encode(), hash_names=["sha1"]
@@ -127,7 +127,7 @@
# call the cli 'swh provenance revision from-journal'
cli_result = invoke(["revision", "from-journal"], config=cfg)
- assert cli_result.exit_code == 0, f"Unexpected result: {result.output}"
+ assert cli_result.exit_code == 0, f"Unexpected result: {cli_result.output}"
result = provenance.storage.revision_get(revisions)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 19, 7:03 AM (9 h, 56 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3216916
Attached To
D8695: Move all non pytest-related functions from conftest to utils.py
Event Timeline
Log In to Comment