summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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):