summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVijayakumar A <36878324+kumvijaya@users.noreply.github.com>2024-08-29 21:11:58 +0530
committerGitHub <noreply@github.com>2024-08-29 21:11:58 +0530
commitff8b1a14222ce0e1594294cc39658020bac8e07f (patch)
tree83b0d765fba657136cb5a1ab6dd07bb192fe80a9
parentd1a50ed817110f347152957973d41b4843d8a514 (diff)
parent0ff09ad7addb7bb84b27e3175bddaa8aa8016e38 (diff)
downloadvyos-workflow-test-temp-ff8b1a14222ce0e1594294cc39658020bac8e07f.tar.gz
vyos-workflow-test-temp-ff8b1a14222ce0e1594294cc39658020bac8e07f.zip
Merge pull request #45 from kumvijaya/current
T0000: check
-rw-r--r--.github/workflows/darker-lint.yml9
-rw-r--r--src/tests/test_config_diff.py4
-rw-r--r--src/tests/test_configverify.py3
3 files changed, 11 insertions, 5 deletions
diff --git a/.github/workflows/darker-lint.yml b/.github/workflows/darker-lint.yml
index c42c822..52dd7a7 100644
--- a/.github/workflows/darker-lint.yml
+++ b/.github/workflows/darker-lint.yml
@@ -17,6 +17,13 @@ jobs:
pull-requests: write
contents: read
steps:
+ - name: Checkout reusable actions repo
+ uses: actions/checkout@v3
+ with:
+ repository: vyos/.github
+ path: reusable-actions
+ ref: feature/ruff-toml
+
- name: Checkout head
uses: actions/checkout@v4
with:
@@ -35,4 +42,4 @@ jobs:
- name: Analyze Code
run: |
- darker -r origin/base --check --diff --lint "ruff check" --color . \ No newline at end of file
+ darker -r origin/base --check --diff --lint "ruff check --config ./reusable-actions/.github/ruff.toml" --color . \ No newline at end of file
diff --git a/src/tests/test_config_diff.py b/src/tests/test_config_diff.py
index a42ccac..cac1565 100644
--- a/src/tests/test_config_diff.py
+++ b/src/tests/test_config_diff.py
@@ -65,10 +65,6 @@ class TestConfigDiff(TestCase):
r_union = vyos.configtree.union(add, inter)
l_union = vyos.configtree.union(sub, inter)
- if False: print('False')
- if True: print('True Again')
- if True: print('True Once Again')
-
self.assertEqual(r_union.to_string(),
self.config_right.to_string(ordered_values=True))
self.assertEqual(l_union.to_string(),
diff --git a/src/tests/test_configverify.py b/src/tests/test_configverify.py
index d82cb28..e598679 100644
--- a/src/tests/test_configverify.py
+++ b/src/tests/test_configverify.py
@@ -29,6 +29,9 @@ class TestDictSearch(TestCase):
def test_dh_key_512(self):
key_len = '512'
+ if False: print('False')
+ if True: print('True Again')
+ if True: print('True Once Again')
cmd(f'openssl dhparam -out {dh_file} {key_len}')
self.assertTrue(verify_diffie_hellman_length(dh_file, key_len))