Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Paste
P697
date parsing fix
Active
Public
Actions
Authored by
anlambert
on Jun 12 2020, 4:20 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
diff --git a/swh/loader/tests/test_cli.py b/swh/loader/tests/test_cli.py
index bdc0a76..c9968f6 100644
--- a/swh/loader/tests/test_cli.py
+++ b/swh/loader/tests/test_cli.py
@@ -87,7 +87,9 @@ def test_run_with_visit_date(mocker, swh_config):
runner = CliRunner()
input_date = "2016-05-03 15:16:32+00"
- result = runner.invoke(run, ["npm", "https://some-url", f"visit_date={input_date}"])
+ result = runner.invoke(
+ run, ["npm", "https://some-url", f"visit_date='{input_date}'"]
+ )
assert result.exit_code == 0
expected_parsed_date = datetime.datetime(
2016, 5, 3, 15, 16, 32, tzinfo=datetime.timezone.utc
Event Timeline
anlambert
created this paste.
Jun 12 2020, 4:20 PM
2020-06-12 16:20:50 (UTC+2)
ardumont
mentioned this in
D3274: test_cli: Mock iso8601 behavior in test
.
Jun 12 2020, 4:24 PM
2020-06-12 16:24:44 (UTC+2)
Log In to Comment