Skip to content

Commit

Permalink
Merge pull request #284 from City-of-Turku/feature/fix-eco-counter-wa…
Browse files Browse the repository at this point in the history
…rnings

Feature/fix eco counter warnings
  • Loading branch information
juuso-j committed Jun 22, 2023
2 parents de41382 + d9467d0 commit bb82941
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion eco_counter/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
retry_strategy = Retry(
total=10,
status_forcelist=[429],
method_whitelist=["GET", "POST"],
allowed_methods=["GET", "POST"],
backoff_factor=30, # 30, 60, 120 , 240, ..seconds
)
adapter = HTTPAdapter(max_retries=retry_strategy)
Expand Down
5 changes: 4 additions & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@
DJANGO_SETTINGS_MODULE = smbackend.settings
addopts = -m "not test_import_counter_data"
markers =
to test counter importers run '-m test_import_counter_data'
test_import_counter_data: mark a test for (eco) counter data, to test counter importers run 'pytest -m test_import_counter_data'



0 comments on commit bb82941

Please sign in to comment.