summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/darker-lint.yml4
-rw-r--r--src/tests/test_template.py1
2 files changed, 3 insertions, 2 deletions
diff --git a/.github/workflows/darker-lint.yml b/.github/workflows/darker-lint.yml
index 8e61ddb..07889f0 100644
--- a/.github/workflows/darker-lint.yml
+++ b/.github/workflows/darker-lint.yml
@@ -38,8 +38,8 @@ jobs:
- name: Fetch base and head commits
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 fetch origin ${{ github.event.pull_request.base.sha }}:refs/remotes/origin/temp-base
+ git fetch origin ${{ github.event.pull_request.head.sha }}:refs/remotes/origin/temp-head
git branch temp-base refs/remotes/origin/temp-base
git branch temp-head refs/remotes/origin/temp-head
diff --git a/src/tests/test_template.py b/src/tests/test_template.py
index dbb86b4..8275503 100644
--- a/src/tests/test_template.py
+++ b/src/tests/test_template.py
@@ -19,6 +19,7 @@ import vyos.template
from vyos.utils.network import interface_exists
from ipaddress import ip_network
from unittest import TestCase
+import json
class TestVyOSTemplate(TestCase):
def setUp(self):