-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
switch all rvdss tests from unittest to pytest; basic abbr virus tests
- Loading branch information
Showing
4 changed files
with
14 additions
and
17 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
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,15 +1,18 @@ | ||
"""Unit tests for rvdss/utils.py.""" | ||
|
||
# standard library | ||
import unittest | ||
import pytest | ||
|
||
from delphi.epidata.acquisition.rvdss.utils import abbreviate_virus | ||
|
||
# py3tester coverage target | ||
__test_target__ = "delphi.epidata.acquisition.rvdss.utils" | ||
|
||
|
||
class FunctionTests(unittest.TestCase): | ||
"""Tests each function individually.""" | ||
|
||
class TestUtils: | ||
def test_syntax(self): | ||
"""This no-op test ensures that syntax is valid.""" | ||
pass | ||
|
||
def test_abbreviate_virus(self): | ||
assert abbreviate_virus("influenza") == "flu" # normal case | ||
assert abbreviate_virus("flu") == "flu" # already abbreviated |