Skip to content

Commit

Permalink
test: set timezone for reproducibility
Browse files Browse the repository at this point in the history
Signed-off-by: bossenti <[email protected]>
  • Loading branch information
bossenti committed Oct 19, 2023
1 parent d2d3a96 commit 7b3ac3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ pretty: autoflake ruff black

# run all unit tests
unit-tests:
poetry run pytest --cov=vistafetch --cov-fail-under=90 --cov-report term-missing:skip-covered --no-cov-on-fail tests/
export TZ="UTC"; poetry run pytest --cov=vistafetch --cov-fail-under=90 --cov-report term-missing:skip-covered --no-cov-on-fail tests/
2 changes: 1 addition & 1 deletion tests/model/asset/test_financial_asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,6 @@ def test_price_data_get_one_day_price_data(self, session_mock: MagicMock):
)
self.assertTrue(isinstance(result, PriceData))
self.assertEqual(
datetime(year=2023, month=10, day=13, hour=14), result.datetime_high
datetime(year=2023, month=10, day=13, hour=12), result.datetime_high
)
self.assertEqual(EXPECTED_PRICE_DATA_LAST, result.last)

0 comments on commit 7b3ac3e

Please sign in to comment.