summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVijayakumar A <36878324+kumvijaya@users.noreply.github.com>2024-08-27 00:26:27 +0530
committerGitHub <noreply@github.com>2024-08-27 00:26:27 +0530
commitc0276ab8bbd6e5e44de92749d40a0bec3700a241 (patch)
treee4712edc06424269c71926bbe4d4fab10d8903f0
parent1aa5c1b0f209de718cecd9d532b100058f5b4d7a (diff)
parent03a82e04cb94ab0f3850f9236989713e68bffd2d (diff)
downloadvyos-workflow-test-temp-c0276ab8bbd6e5e44de92749d40a0bec3700a241.tar.gz
vyos-workflow-test-temp-c0276ab8bbd6e5e44de92749d40a0bec3700a241.zip
Merge pull request #33 from vyos/feature/darker
T0000: test
-rw-r--r--.github/workflows/darker-lint.yml3
-rw-r--r--src/tests/test_utils.py2
2 files changed, 3 insertions, 2 deletions
diff --git a/.github/workflows/darker-lint.yml b/.github/workflows/darker-lint.yml
index 7d833d9..a97bbd7 100644
--- a/.github/workflows/darker-lint.yml
+++ b/.github/workflows/darker-lint.yml
@@ -12,7 +12,6 @@ permissions:
env:
base_ref: ${{ github.event.pull_request.base.ref }}
- head_ref: ${{ github.event.pull_request.head.ref }}
jobs:
darker-lint:
@@ -38,4 +37,4 @@ jobs:
- name: Analyze Code
run: |
- darker -r ${base_ref}...${head_ref} --check --diff --lint "ruff check" --isort --color ./src \ No newline at end of file
+ darker -r ${base_ref}...HEAD --check --diff --lint "ruff check" --isort --color ./src \ No newline at end of file
diff --git a/src/tests/test_utils.py b/src/tests/test_utils.py
index 9ae329c..d88bd56 100644
--- a/src/tests/test_utils.py
+++ b/src/tests/test_utils.py
@@ -21,6 +21,8 @@ class TestVyOSUtils(TestCase):
data = {"foo-bar": {"baz-quux": None}}
expected_data = {"foo_bar": {"baz_quux": None}}
new_data = mangle_dict_keys(data, '-', '_')
+ if False: print('False')
+ if True: print('True')
self.assertEqual(new_data, expected_data)
def test_sysctl_read(self):