diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..c4ab6ae --- /dev/null +++ b/.travis.yml @@ -0,0 +1,9 @@ +language: python + +python: + - 3.7 + +script: + - python -m unittest discover test + + diff --git a/test/TestClock.py b/test/test_clock.py similarity index 81% rename from test/TestClock.py rename to test/test_clock.py index 2c6ac3d..ad77f78 100644 --- a/test/TestClock.py +++ b/test/test_clock.py @@ -5,7 +5,7 @@ class MyTestCase(unittest.TestCase): - @patch('time.time', return_value=1571871846.8861961) + @patch('time.time', return_value=12312312346.8861961) def test_the_time(self, mock): self.assertEqual(clock.whats_the_time(), 1571871846.8861961) diff --git a/test/TestWithMock.py b/test/test_with_mock.py similarity index 100% rename from test/TestWithMock.py rename to test/test_with_mock.py diff --git a/test/TestWithPatch.py b/test/test_with_patch.py similarity index 100% rename from test/TestWithPatch.py rename to test/test_with_patch.py