summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVijayakumar A <36878324+kumvijaya@users.noreply.github.com>2024-08-28 00:53:41 +0530
committerGitHub <noreply@github.com>2024-08-28 00:53:41 +0530
commita500053153499d389b84c94d540adf919c437ebc (patch)
treececff1321e7b9302e12935e3d2e09569cb3e4a1c
parent80b828b0426cb2ed9d36e2d49b0bae0f4517e0a2 (diff)
parent21c27ba9849a54508601fc09c8ac9767175405e4 (diff)
downloadvyos-workflow-test-temp-a500053153499d389b84c94d540adf919c437ebc.tar.gz
vyos-workflow-test-temp-a500053153499d389b84c94d540adf919c437ebc.zip
Merge pull request #40 from kumvijaya/current
T0000: test 3
-rw-r--r--.github/workflows/darker-lint.yml5
-rw-r--r--src/tests/test_dict_search.py1
2 files changed, 4 insertions, 2 deletions
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 @@ class TestDictSearch(TestCase):
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))