Skip to content

Commit dfe2b06

Browse files
committed
remove test_suite functions
1 parent 2016986 commit dfe2b06

10 files changed

Lines changed: 0 additions & 80 deletions

File tree

py/desisurvey/test/test_config.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,3 @@ def test_terminal_keys(self):
188188
c = Configuration()
189189
with self.assertRaises(RuntimeError):
190190
k = c.avoid_bodies.moon.keys
191-
192-
193-
def test_suite():
194-
"""Allows testing of only this module with the command::
195-
196-
python setup.py test -m <modulename>
197-
"""
198-
return unittest.defaultTestLoader.loadTestsFromName(__name__)

py/desisurvey/test/test_ephem.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,3 @@ def test_moon_altaz(self):
132132
obstime=t, location=location, pressure=0)
133133
sep = truth.separation(calc)
134134
self.assertTrue(abs(sep.to(u.deg).value) < 0.3)
135-
136-
137-
def test_suite():
138-
"""Allows testing of only this module with the command::
139-
140-
python setup.py test -m <modulename>
141-
"""
142-
return unittest.defaultTestLoader.loadTestsFromName(__name__)

py/desisurvey/test/test_etc.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,3 @@ def test_ETC(self):
110110
self.assertFalse(ETC.active)
111111
self.assertEqual(ETC.exptime, now - 1.)
112112
self.assertTrue((not done) or (ETC.snr2frac >= 1))
113-
114-
115-
def test_suite():
116-
"""Allows testing of only this module with the command::
117-
118-
python setup.py test -m <modulename>
119-
"""
120-
return unittest.defaultTestLoader.loadTestsFromName(__name__)

py/desisurvey/test/test_forecast.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,3 @@ def test_forecast(self):
2222
for twilight in True, False:
2323
forecast = Forecast(use_twilight=twilight, design_hourangle=HA, weather=W)
2424
forecast.summary()
25-
26-
27-
def test_suite():
28-
"""Allows testing of only this module with the command::
29-
30-
python setup.py test -m <modulename>
31-
"""
32-
return unittest.defaultTestLoader.loadTestsFromName(__name__)

py/desisurvey/test/test_optimize.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,3 @@ def test_wrap_unwrap(self):
1313
w = wrap(x, dx)
1414
assert np.all(w >= dx)
1515
assert np.all(w < dx + 360)
16-
17-
18-
def test_suite():
19-
"""Allows testing of only this module with the command::
20-
21-
python setup.py test -m <modulename>
22-
"""
23-
return unittest.defaultTestLoader.loadTestsFromName(__name__)

py/desisurvey/test/test_plan.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,3 @@ def test_plan(self):
4242
# Save and restore our state.
4343
plan.save('snapshot.ecsv')
4444
plan2 = Planner(restore='snapshot.ecsv', simulate=True)
45-
46-
47-
def test_suite():
48-
"""Allows testing of only this module with the command::
49-
50-
python setup.py test -m <modulename>
51-
"""
52-
return unittest.defaultTestLoader.loadTestsFromName(__name__)

py/desisurvey/test/test_rules.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,3 @@ def test_rules(self):
2020
for i in range(10):
2121
donefrac[gen.choice(tiles.ntiles, tiles.ntiles // 10, replace=False)] = 1
2222
rules.apply(donefrac)
23-
24-
25-
def test_suite():
26-
"""Allows testing of only this module with the command::
27-
28-
python setup.py test -m <modulename>
29-
"""
30-
return unittest.defaultTestLoader.loadTestsFromName(__name__)

py/desisurvey/test/test_scheduler.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,3 @@ def test_scheduler(self):
5959
if tileid is not None:
6060
scheduler.update_snr(tileid, 1.)
6161
scheduler2.update_snr(tileid, 1.)
62-
63-
64-
def test_suite():
65-
"""Allows testing of only this module with the command::
66-
67-
python setup.py test -m <modulename>
68-
"""
69-
return unittest.defaultTestLoader.loadTestsFromName(__name__)

py/desisurvey/test/test_tiles.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,3 @@ def test_overlap(self):
5252
tiles.tileRA[IDX1], tiles.tileDEC[IDX1])
5353
self.assertEqual(sep.shape, (1, len(IDX1)))
5454
self.assertTrue(np.max(sep) <= 2 * config.tile_radius().to(u.deg).value)
55-
56-
57-
def test_suite():
58-
"""Allows testing of only this module with the command::
59-
60-
python setup.py test -m <modulename>
61-
"""
62-
return unittest.defaultTestLoader.loadTestsFromName(__name__)

py/desisurvey/test/test_utils.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -228,11 +228,3 @@ def test_separation_matrix(self):
228228
assert np.allclose(utils.separation_matrix([90], [0], [90], [90]), 90.)
229229
assert np.allclose(utils.separation_matrix([0], [0], [0], [-45]), 45.)
230230
assert np.allclose(utils.separation_matrix([330], [0], [30], [0]), 60.)
231-
232-
233-
def test_suite():
234-
"""Allows testing of only this module with the command::
235-
236-
python setup.py test -m <modulename>
237-
"""
238-
return unittest.defaultTestLoader.loadTestsFromName(__name__)

0 commit comments

Comments
 (0)