Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
86098f26dc | ||
|
|
b54538c40b | ||
|
|
cb8721b6e4 | ||
|
|
c3872730e0 |
No files matched your search
Regular → Executable
BIN
Binary file not shown.
Regular → Executable
+2
-2
@@ -9,9 +9,9 @@ def test_load_dataframe() -> None:
|
||||
mm_start = datetime(2025, 4, 5)
|
||||
date_end = datetime(2026, 3, 8)
|
||||
assert int(analyze.load_dataframe(
|
||||
table_name='PowerballDraw', start_date=pb_start, end_date=date_end).count()['draw_date']) == 1324
|
||||
table_name='PowerballDraw', start_date=pb_start, end_date=date_end).count()['draw_date']) >= 1324
|
||||
assert int(analyze.load_dataframe(
|
||||
table_name='MegaMillionsDraw', start_date=mm_start, end_date=date_end).count()['draw_date']) == 96
|
||||
table_name='MegaMillionsDraw', start_date=mm_start, end_date=date_end).count()['draw_date']) >= 96
|
||||
with pytest.raises(ValueError):
|
||||
analyze.load_dataframe(table_name='SomNonExistentTableName')
|
||||
|
||||
|
||||
Regular → Executable
+1
-1
@@ -144,4 +144,4 @@ def test_load_environment_variables() -> None:
|
||||
"""test loading environment variables for script use"""
|
||||
env_vars = ue.load_environment_variables()
|
||||
assert type(env_vars) == dict
|
||||
assert len(env_vars) == 24
|
||||
assert len(env_vars) == 25
|
||||
Regular → Executable
+1
-1
@@ -1,7 +1,7 @@
|
||||
"""
|
||||
util/scrape.py
|
||||
|
||||
Utility functions for scaping web data relative to selected games
|
||||
Utility functions for scraping web data relative to selected games
|
||||
"""
|
||||
import httpx
|
||||
from dateutil import parser, utils
|
||||
|
||||
Reference in new issue
Block a user