generated from NOAA-OWP/owp-open-source-project-template
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test inializing Forcing and Routing models with non-existant config f…
…iles
- Loading branch information
Showing
2 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |