From 6bc21d3c735edc7897e49afd2a5ea9e3aa56d7fb Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Mon, 22 Mar 2021 21:05:39 -0700 Subject: [PATCH] fix date parser tests - local tests only since timezones may not match on github actions VMs --- runtests.sh | 1 + tests/{test_date.py => localtest_date.py} | 0 tests/localtest_last.py | 1 - 3 files changed, 1 insertion(+), 1 deletion(-) rename tests/{test_date.py => localtest_date.py} (100%) diff --git a/runtests.sh b/runtests.sh index 492759ee..3518fd2e 100755 --- a/runtests.sh +++ b/runtests.sh @@ -7,3 +7,4 @@ echo "Running local-only tests:" echo python3 -m unittest tests.localtest_last -v +python3 -m unittest tests.localtest_date -v diff --git a/tests/test_date.py b/tests/localtest_date.py similarity index 100% rename from tests/test_date.py rename to tests/localtest_date.py diff --git a/tests/localtest_last.py b/tests/localtest_last.py index 6776777b..32e70c5e 100644 --- a/tests/localtest_last.py +++ b/tests/localtest_last.py @@ -23,7 +23,6 @@ class MyTests(unittest.TestCase): with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/centos-7.7/last-wF.json'), 'r', encoding='utf-8') as f: self.centos_7_7_last_wF_json = json.loads(f.read()) - def test_last_F_ubuntu_20_4(self): """ Test 'last -F' on Ubuntu 20.4