mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-07 15:48:29 +02:00
run tests on commit
This commit is contained in:
parent
445ca84834
commit
76df656128
8 changed files with 18 additions and 17 deletions
0
tests/data/__init__.py
Normal file
0
tests/data/__init__.py
Normal file
|
|
@ -1,7 +1,6 @@
|
|||
import pytz
|
||||
|
||||
from data import schedule
|
||||
from datetime import datetime
|
||||
import pytz
|
||||
import unittest
|
||||
|
||||
|
||||
|
|
@ -17,11 +16,3 @@ class TestSchedule(unittest.TestCase):
|
|||
self.assertFalse(holiday.has_passed(before))
|
||||
self.assertFalse(holiday.has_passed(during))
|
||||
self.assertTrue(holiday.has_passed(after))
|
||||
|
||||
def test_course_str(self):
|
||||
course = schedule.Course("Test")
|
||||
self.assertEqual(str(course), "Test")
|
||||
|
||||
def test_location_str(self):
|
||||
location = schedule.Location("C", "B", "R")
|
||||
self.assertEqual(str(location), "C B R")
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
import unittest
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
suite = unittest.TestLoader().discover('.', pattern="test_*.py")
|
||||
unittest.TextTestRunner(verbosity=3).run(suite)
|
||||
Loading…
Add table
Add a link
Reference in a new issue