-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
718bca9
commit 4f60fa9
Showing
4 changed files
with
14 additions
and
9 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
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
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 |
---|---|---|
@@ -1,18 +1,20 @@ | ||
import pytest | ||
import xarray as xr | ||
from fastapi import HTTPException | ||
|
||
|
||
from api.ingest import IngestToPipeline | ||
|
||
|
||
def test_build_message_errors(): | ||
msg_build = IngestToPipeline(None, "testing", testing=True) | ||
|
||
with pytest.raises(TypeError): | ||
with pytest.raises(HTTPException): | ||
msg_build._build_messages(xr.Dataset()) | ||
|
||
|
||
def test_decide_input_type(): | ||
msg_build = IngestToPipeline(None, "testing", testing=True) | ||
|
||
with pytest.raises(ValueError): | ||
with pytest.raises(HTTPException): | ||
msg_build._decide_input_type("this_has_no_filetype") |
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
4f60fa9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
API Unit Test Coverage Report
API Unit Test Coverage Summary