-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add tests to increase test coverage #259
- `test_get_condition_values()` didn't resolve the partial branch coverage but I thought I'd commit it regardless because it might help us later on
- Loading branch information
1 parent
ed72451
commit e014af6
Showing
4 changed files
with
52 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from datagateway_api.src.common.base_query_filter_factory import QueryFilterFactory | ||
|
||
|
||
class TestBaseQueryFilterFactory: | ||
def test_abstract_class(self): | ||
QueryFilterFactory.__abstractmethods__ = set() | ||
|
||
class DummyQueryFilterFactory(QueryFilterFactory): | ||
pass | ||
|
||
d = DummyQueryFilterFactory() | ||
|
||
request_filter = "request_filter" | ||
|
||
assert d.get_query_filter(request_filter) is None |
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