Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

T0000: prob added #41

Merged
merged 2 commits into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/darker-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions src/tests/test_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from vyos.utils.network import interface_exists
from ipaddress import ip_network
from unittest import TestCase
import json

Check failure on line 22 in src/tests/test_template.py

View workflow job for this annotation

GitHub Actions / ruff-lint

Ruff (F401)

src/tests/test_template.py:22:8: F401 `json` imported but unused

class TestVyOSTemplate(TestCase):
def setUp(self):
Expand Down Expand Up @@ -124,7 +125,7 @@
self.assertTrue(vyos.template.is_ip_network('2001:db8::/48'))
self.assertTrue(vyos.template.is_ip_network('2001:db8:1000::/64'))

def test_is_network(self):

Check failure on line 128 in src/tests/test_template.py

View workflow job for this annotation

GitHub Actions / ruff-lint

Ruff (F811)

src/tests/test_template.py:128:9: F811 Redefinition of unused `test_is_network` from line 118
self.assertTrue(vyos.template.compare_netmask('10.0.0.0/8', '20.0.0.0/8'))
self.assertTrue(vyos.template.compare_netmask('10.0.0.0/16', '20.0.0.0/16'))
self.assertFalse(vyos.template.compare_netmask('10.0.0.0/8', '20.0.0.0/16'))
Expand Down
Loading