Skip to content

Commit 6ec71ce

Browse files
committed
prefer pytest-style
1 parent 8f51f21 commit 6ec71ce

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

astroquery/gaia/tests/test_gaiatap.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
1515
1616
"""
17-
import unittest
1817
import os
1918
from unittest.mock import patch
2019

@@ -40,7 +39,7 @@ def data_path(filename):
4039
return os.path.join(data_dir, filename)
4140

4241

43-
class TestTap(unittest.TestCase):
42+
class TestTap():
4443

4544
def test_query_object(self):
4645
conn_handler = DummyConnHandler()
@@ -609,8 +608,3 @@ def test_logout(self, mock_logout):
609608
mock_logout.side_effect = HTTPError("Login error")
610609
tap.logout()
611610
assert (mock_logout.call_count == 3)
612-
613-
614-
if __name__ == "__main__":
615-
# import sys;sys.argv = ['', 'Test.testName']
616-
unittest.main()

0 commit comments

Comments
 (0)