File tree Expand file tree Collapse file tree 4 files changed +14
-17
lines changed Expand file tree Collapse file tree 4 files changed +14
-17
lines changed Original file line number Diff line number Diff line change 11"""Unit tests for rvdss/database.py."""
22
3- # standard library
4- import unittest
3+ import pytest
54
65# py3tester coverage target
76__test_target__ = "delphi.epidata.acquisition.rvdss.database"
87
98
10- class FunctionTests (unittest .TestCase ):
11- """Tests each function individually."""
9+ class TestDatabase ():
1210
1311 def test_syntax (self ):
1412 """This no-op test ensures that syntax is valid."""
Original file line number Diff line number Diff line change 11"""Unit tests for rvdss/pull_historic.py."""
22
3- # standard library
4- import unittest
3+ import pytest
54
65# py3tester coverage target
76__test_target__ = "delphi.epidata.acquisition.rvdss.pull_historic"
87
98
10- class FunctionTests (unittest .TestCase ):
11- """Tests each function individually."""
9+ class TestPullHistoric ():
1210
1311 def test_syntax (self ):
1412 """This no-op test ensures that syntax is valid."""
Original file line number Diff line number Diff line change 11"""Unit tests for rvdss/run.py."""
22
3- # standard library
4- import unittest
3+ import pytest
54
65# py3tester coverage target
76__test_target__ = "delphi.epidata.acquisition.rvdss.run"
87
98
10- class FunctionTests (unittest .TestCase ):
11- """Tests each function individually."""
9+ class TestRun ():
1210
1311 def test_syntax (self ):
1412 """This no-op test ensures that syntax is valid."""
Original file line number Diff line number Diff line change 11"""Unit tests for rvdss/utils.py."""
22
3- # standard library
4- import unittest
3+ import pytest
4+
5+ from delphi .epidata .acquisition .rvdss .utils import abbreviate_virus
56
67# py3tester coverage target
78__test_target__ = "delphi.epidata.acquisition.rvdss.utils"
89
910
10- class FunctionTests (unittest .TestCase ):
11- """Tests each function individually."""
12-
11+ class TestUtils :
1312 def test_syntax (self ):
1413 """This no-op test ensures that syntax is valid."""
1514 pass
15+
16+ def test_abbreviate_virus (self ):
17+ assert abbreviate_virus ("influenza" ) == "flu" # normal case
18+ assert abbreviate_virus ("flu" ) == "flu" # already abbreviated
You can’t perform that action at this time.
0 commit comments