Этап: Аналитические запросы
This commit is contained in:
1 parent
d90f1f30b2
commit
2ec0b38d95
10 files changed
+315
-1
No files matched your search
@@ -73,6 +73,10 @@ def test_full_run_and_repeat(project):
|
||||
assert (len(amounts), sum(amounts)) == (count, revenue)
|
||||
|
||||
outputs = project / "outputs"
|
||||
markdown = (outputs / "query_results.md").read_text(encoding="utf-8")
|
||||
assert "| Книги | 3 | 2600 |" in markdown
|
||||
assert "| 2024-01-02 | 500 | -1900 |" in markdown
|
||||
assert "Аномалий не обнаружено." in markdown
|
||||
with (outputs / "clean_orders.csv").open(encoding="utf-8-sig", newline="") as source:
|
||||
clean = list(csv.DictReader(source))
|
||||
assert sorted((int(r["order_id"]), r["order_date"], r["category"], int(r["quantity"]),
|
||||
|
||||
Reference in new issue
Block a user