From c29f89d0aab4dd1d60a43271346ef19c91a03a71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl> Date: Wed, 6 Mar 2024 13:46:17 +0100 Subject: [PATCH] fix unit test issues --- .github/workflows/ci.yml | 6 ++---- tests/test_coding/test_structures.py | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f8da191c..1dd78052 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,12 +25,10 @@ jobs: pip install coverage[toml] coverage xml name: Installing coverage[toml] - - run : | - pip install codeclimate-test-reporter - codeclimate-test-reporter + - uses: caffco/code-climate-github-action@main name: submitting coverage to CodeClimate env: - CODECLIMATE_REPO_TOKEN: ${{ secrets.CC_TEST_REPORTER_ID }} + CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} build-project: runs-on: ubuntu-20.04 steps: diff --git a/tests/test_coding/test_structures.py b/tests/test_coding/test_structures.py index 94c032dc..10177834 100644 --- a/tests/test_coding/test_structures.py +++ b/tests/test_coding/test_structures.py @@ -595,7 +595,7 @@ class TestStructures(unittest.TestCase): def test_dirty_dict(self): a = DirtyDict({1: 2, 3: 4}) - self.assertEqual(len(a), 1) + self.assertEqual(len(a), 2) self.assertEqual(set(a.keys()), {1, 3}) self.assertFalse(a.dirty) self.assertIn(3, a) -- GitLab