Skip to content

Commit

Permalink
test inializing Forcing and Routing models with non-existant config f…
Browse files Browse the repository at this point in the history
…iles
  • Loading branch information
aaraney committed Nov 14, 2023
1 parent b50847f commit 324cfa3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/ngen_conf/tests/test_forcing.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from ngen.config.configurations import Forcing


def test_initialize_forcing_with_non_existant_path():
o = Forcing(path="some-fake-path.csv", provider=Forcing.Provider.CSV)
assert not o.path.exists()
6 changes: 6 additions & 0 deletions python/ngen_conf/tests/test_routing.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from ngen.config.configurations import Routing


def test_initialize_routing_with_non_existant_path():
o = Routing(t_route_config_file_with_path="some-fake-path.csv")
assert not o.config.exists()

0 comments on commit 324cfa3

Please sign in to comment.