https://dagster.io/ logo
#ask-community
Title
# ask-community
c

Casper Weiss Bang

01/31/2023, 11:19 AM
Yo how do i postpone execution of repositories in tests? I have ressources that only work with specific configuration values defined. (I have a custom
Config
dataclass). My repositories are defined with a call to
get_config_from_envvars
which fails if an env var isn't defined. This is not great in unit tests. I know Python and Dependency Injection doesn't always go hand in hand, but it'd prefer not having monkey patching nor some magic env var that loads completly different configs, but that might be the best/only solution
2 Views