diff --git a/.github/workflows/darker-lint.yml b/.github/workflows/darker-lint.yml index e3104d8..8e61ddb 100644 --- a/.github/workflows/darker-lint.yml +++ b/.github/workflows/darker-lint.yml @@ -40,8 +40,9 @@ jobs: run: | git fetch origin ${{ github.event.pull_request.base.sha }}:refs/remotes/origin/base git fetch origin ${{ github.event.pull_request.head.sha }}:refs/remotes/origin/head - + git branch temp-base refs/remotes/origin/temp-base + git branch temp-head refs/remotes/origin/temp-head - name: Analyze Code run: | - darker -r origin/base...origin/head --check --diff --lint "ruff check" --color . \ No newline at end of file + darker -r temp-base...temp-head --check --diff --lint "ruff check" --color . \ No newline at end of file diff --git a/src/tests/test_dict_search.py b/src/tests/test_dict_search.py index b4bd986..fe0abd7 100644 --- a/src/tests/test_dict_search.py +++ b/src/tests/test_dict_search.py @@ -67,6 +67,7 @@ def test_nested_dict_key_value(self): self.assertEqual(dict_search('nested.string', data), data['nested']['string']) def test_nested_dict_key_empty(self): + if False: print('False') # TestDictSearch: Return False when querying for a nested string whose last key is empty self.assertEqual(dict_search('nested.empty', data), '') self.assertFalse(dict_search('nested.empty', data))