Repair official collection and retire exhausted material tasks
This commit is contained in:
1 parent
d5d350b7ec
commit
d0c2beb9b3
23 files changed
+399
-35
No files matched your search
@@ -123,3 +123,10 @@ def test_history_preview_requires_matching_archive_date_without_writes(trading,
|
||||
assert result["announcements"].get("eia_stocks", 0) == int(valid)
|
||||
assert bool(result["errors"]) != valid
|
||||
save.assert_not_awaited()
|
||||
|
||||
|
||||
def test_current_official_archive_csv_directory():
|
||||
url = 'https://www.eia.gov/petroleum/supply/weekly/archive/2026/2026_10_15/wpsr_2026_10_15.php'
|
||||
assert eia.csv_link('<a href="csv/table1.csv">CSV</a>', url) == url.rsplit('/', 1)[0] + '/csv/table1.csv'
|
||||
with pytest.raises(ValueError):
|
||||
eia.csv_link('<a href="csv/table1.csv">A</a><a href="download/table1.csv">B</a>', url)
|
||||
Reference in new issue
Block a user