From 37edebf779b0c6cf54cf2ec5d5c7b21cec11dab9 Mon Sep 17 00:00:00 2001 From: jakke-neiro Date: Thu, 24 Oct 2019 13:58:07 +0100 Subject: [PATCH 1/8] test commit --- testting.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 testting.py diff --git a/testting.py b/testting.py new file mode 100644 index 0000000..e69de29 From c2cfbb55a36edd18a1b7e3c47ab82d1db7e346cf Mon Sep 17 00:00:00 2001 From: jakke-neiro Date: Thu, 24 Oct 2019 14:16:41 +0100 Subject: [PATCH 2/8] test commit --- testting.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 testting.py diff --git a/testting.py b/testting.py deleted file mode 100644 index e69de29..0000000 From 43b526750b1085612572c0a43e5d08191a107226 Mon Sep 17 00:00:00 2001 From: jakke-neiro Date: Thu, 24 Oct 2019 14:21:28 +0100 Subject: [PATCH 3/8] test commit --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index e3f28d2..f4083f7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,7 @@ language: python +python: + - 3.6 + - 3.7 + - 3.8 script: - pytest \ No newline at end of file From ddaf6f14a08fa46d5985aa95c2913f52f74f6dcb Mon Sep 17 00:00:00 2001 From: jakke-neiro Date: Thu, 24 Oct 2019 14:25:29 +0100 Subject: [PATCH 4/8] test commit --- .travis.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index f4083f7..eccb379 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,5 @@ language: python python: - - 3.6 - - 3.7 - 3.8 script: - pytest \ No newline at end of file From 3a8f8295132e74c9e52a3927754f68ab314b3a75 Mon Sep 17 00:00:00 2001 From: jakke-neiro Date: Thu, 24 Oct 2019 14:29:03 +0100 Subject: [PATCH 5/8] test commit --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index eccb379..37fa313 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,4 +2,4 @@ language: python python: - 3.8 script: - - pytest \ No newline at end of file + - python -m unittest discover test \ No newline at end of file From 89397101948ad23547bd9e5e86a95c7934098a04 Mon Sep 17 00:00:00 2001 From: jakke-neiro Date: Thu, 24 Oct 2019 15:05:58 +0100 Subject: [PATCH 6/8] test commit --- test/{TestClock.py => test_clock.py} | 2 +- test/{TestWithMock.py => test_with_mock.py} | 3 ++- test/{TestWithPatch.py => test_with_patch.py} | 0 3 files changed, 3 insertions(+), 2 deletions(-) rename test/{TestClock.py => test_clock.py} (93%) rename test/{TestWithMock.py => test_with_mock.py} (99%) rename test/{TestWithPatch.py => test_with_patch.py} (100%) diff --git a/test/TestClock.py b/test/test_clock.py similarity index 93% rename from test/TestClock.py rename to test/test_clock.py index 2c6ac3d..f5bf568 100644 --- a/test/TestClock.py +++ b/test/test_clock.py @@ -11,4 +11,4 @@ def test_the_time(self, mock): if __name__ == '__main__': - unittest.main() + unittest.main() \ No newline at end of file diff --git a/test/TestWithMock.py b/test/test_with_mock.py similarity index 99% rename from test/TestWithMock.py rename to test/test_with_mock.py index 9838ed8..0778c3d 100644 --- a/test/TestWithMock.py +++ b/test/test_with_mock.py @@ -1,7 +1,8 @@ import unittest -from temperature_tracker import TemperatureTracker from unittest.mock import Mock +from temperature_tracker import TemperatureTracker + class TestWithMock(unittest.TestCase): 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 From 02b99495487d6544d4f9390d0a759f5955bf1767 Mon Sep 17 00:00:00 2001 From: jakke-neiro Date: Thu, 24 Oct 2019 15:12:15 +0100 Subject: [PATCH 7/8] test commit --- test/test_clock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_clock.py b/test/test_clock.py index f5bf568..8715ad9 100644 --- a/test/test_clock.py +++ b/test/test_clock.py @@ -7,7 +7,7 @@ class MyTestCase(unittest.TestCase): @patch('time.time', return_value=1571871846.8861961) def test_the_time(self, mock): - self.assertEqual(clock.whats_the_time(), 1571871846.8861961) + self.assertEqual(clock.whats_the_time(), 1571871846.8861787) if __name__ == '__main__': From 3116cbb5ccfd4763559be1dd581625fcf5f0357d Mon Sep 17 00:00:00 2001 From: jakke-neiro Date: Thu, 24 Oct 2019 15:15:01 +0100 Subject: [PATCH 8/8] test commit --- test/test_clock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_clock.py b/test/test_clock.py index 8715ad9..f5bf568 100644 --- a/test/test_clock.py +++ b/test/test_clock.py @@ -7,7 +7,7 @@ class MyTestCase(unittest.TestCase): @patch('time.time', return_value=1571871846.8861961) def test_the_time(self, mock): - self.assertEqual(clock.whats_the_time(), 1571871846.8861787) + self.assertEqual(clock.whats_the_time(), 1571871846.8861961) if __name__ == '__main__':