One Integration test broken locally TestSnapshotHardDelete.test__postgres__snapshot_hard_delete
#3952
Closed
1 of 5 tasks
Labels
bug
Something isn't working
repo ci/cd
Testing and continuous integration for dbt-core + adapter plugins
Describe the bug
Hello 👋,
I followed the CONTRIBUTING.md guide to run
dbt
in development, here the steps I did:pyenv
andvirtualenv
to manage my python env.pip install -r dev-requirements.txt -r editable-requirements.txt
)make setup-db
)004_simple_snapshot_test
integration test failed:FYI, I launched the test at 9:26 UTC.
Seems like
result[-1].astimezone(pytz.UTC)
doesn't return the right UTC time.I did few tests:
result[-1].replace(tzinfo=pytz.UTC)
fix the issue home.If we took a look to astimezone doc
Steps To Reproduce
Not sure to know how to reproduce the BUG. Root cause if probably linked to my local environment 😕 .
Please note my environment variable
TZ
is equal toEurope/Paris
.Same for PG Timezone:
Expected behavior
Integration tests to pass.
System information
Which database are you using dbt with?
The output of
dbt --version
:The operating system you're using:
Ubuntu 20.04.2 LTS
The output of
python --version
:Python 3.8.11
Additional context
I can contribute to fix this bug if needed 🙂 .
The text was updated successfully, but these errors were encountered: