diff --git a/.github/workflows/tests_and_checks.yml b/.github/workflows/tests_and_checks.yml index 00efc27..e1741ce 100644 --- a/.github/workflows/tests_and_checks.yml +++ b/.github/workflows/tests_and_checks.yml @@ -21,7 +21,7 @@ jobs: if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Test with pytest run: | - coverage run -m pytest --datetime-increments-limit=150 --number-of-dfs-to-stop-at=15 -m "not completion" + coverage run -m pytest --datetime-increments-limit=150 --number-of-dfs-to-stop-at=60 -m "not completion" - name: Generate coverage report run: | coverage report -m diff --git a/MISOReports/MISOReports.py b/MISOReports/MISOReports.py index 767c606..c79823c 100644 --- a/MISOReports/MISOReports.py +++ b/MISOReports/MISOReports.py @@ -414,6 +414,9 @@ def get_url( report = MISOReports.report_mappings[report_name] + if file_extension is None: + file_extension = report.type_to_parse + res = report.url_builder.build_url( file_extension=file_extension, ddatetime=ddatetime, @@ -1181,7 +1184,7 @@ def add_to_datetime( url_builder=MISORTWDDataBrokerURLBuilder( target="getimporttotal5", supported_extensions=["csv", "xml", "json"], - default_extension="csv", + default_extension="json", ), type_to_parse="json", parser=parsers.parse_importtotal5, @@ -1524,8 +1527,8 @@ def add_to_datetime( ), type_to_parse="csv", parser=parsers.parse_asm_rtmcp_final, - example_url="https://docs.misoenergy.org/marketreports/20220101_asm_rtmcp_final.csv", - example_datetime=datetime.datetime(year=2022, month=1, day=1), + example_url="https://docs.misoenergy.org/marketreports/20230101_asm_rtmcp_final.csv", + example_datetime=datetime.datetime(year=2023, month=1, day=1), ), "asm_rtmcp_prelim": Report( # Checked 2024-11-29.