Skip to content

Commit ce43834

Browse files
committed
remove unused imports
1 parent 4d47532 commit ce43834

11 files changed

+13
-19
lines changed

.vscode/settings.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@
22
"python.pythonPath": "${workspaceFolder}/venv/bin/python",
33
"python.autoComplete.extraPaths": ["./tests/scripts"],
44
"python.envFile": "${workspaceFolder}/.env",
5-
"restructuredtext.confPath": "${workspaceFolder}/docs"
5+
"restructuredtext.confPath": "${workspaceFolder}/docs",
6+
"python.analysis.extraPaths": [
7+
"./tests/scripts"
8+
]
69
}

tests/conftest.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
"""Provide some base configurations for tests."""
2-
import inspect
32
import phpypam
43
import pytest
54
import py.path
6-
import re
75
import yaml
86

97
from urllib.parse import urlparse, urlunparse

tests/test_cases/api_connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import vcr
55
import yaml
66

7-
from tests.conftest import filter_request_uri, filter_response, cassette_name, FILTER_REQUEST_HEADERS, FILTER_RESPONSE_HEADERS
7+
from tests.conftest import filter_request_uri, filter_response, cassette_name, FILTER_REQUEST_HEADERS
88
from phpypam.core.exceptions import PHPyPAMInvalidCredentials
99

1010

tests/test_cases/controllers.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
"""Test controller method."""
2-
import pytest
32
import vcr
43

5-
from tests.conftest import filter_request_uri, filter_response, cassette_name, FILTER_REQUEST_HEADERS, FILTER_RESPONSE_HEADERS
4+
from tests.conftest import filter_request_uri, filter_response, cassette_name, FILTER_REQUEST_HEADERS
65

76

87
@vcr.use_cassette(cassette_name('test_controllers'),

tests/test_cases/ensure_nameserver.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
"""Tests to check funtionallity of section handling."""
2-
import phpypam
32
import pytest
43
import vcr
54
import yaml
65

76
with open('tests/vars/server.yml') as c:
87
server = yaml.safe_load(c)
98

10-
from tests.conftest import filter_request_uri, filter_response, cassette_name, FILTER_REQUEST_HEADERS, FILTER_RESPONSE_HEADERS
9+
from tests.conftest import filter_request_uri, filter_response, cassette_name, FILTER_REQUEST_HEADERS
1110
from phpypam import PHPyPAMEntityNotFoundException
1211

1312

tests/test_cases/ensure_section.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
"""Tests to check funtionallity of section handling."""
2-
import phpypam
32
import pytest
43
import vcr
54
import yaml
65

7-
from tests.conftest import filter_request_uri, filter_response, cassette_name, FILTER_REQUEST_HEADERS, FILTER_RESPONSE_HEADERS
6+
from tests.conftest import filter_request_uri, filter_response, cassette_name, FILTER_REQUEST_HEADERS
87
from phpypam import PHPyPAMEntityNotFoundException
98

109

tests/test_cases/ensure_vlan.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
"""Tests to check funtionallity of vlan handling."""
2-
import phpypam
32
import pytest
43
import vcr
54
import yaml
65

7-
from tests.conftest import filter_request_uri, filter_response, cassette_name, FILTER_REQUEST_HEADERS, FILTER_RESPONSE_HEADERS
6+
from tests.conftest import filter_request_uri, filter_response, cassette_name, FILTER_REQUEST_HEADERS
87
from phpypam import PHPyPAMEntityNotFoundException
98

109

tests/test_cases/force_exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import vcr
55
import yaml
66

7-
from tests.conftest import filter_request_uri, filter_response, cassette_name, FILTER_REQUEST_HEADERS, FILTER_RESPONSE_HEADERS
7+
from tests.conftest import filter_request_uri, filter_response, cassette_name, FILTER_REQUEST_HEADERS
88
from phpypam.core.exceptions import PHPyPAMInvalidCredentials, PHPyPAMInvalidSyntax
99

1010

tests/test_cases/search_address.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
"""Test search for address."""
2-
import phpypam
32
import pytest
43
import vcr
54
import yaml
65

7-
from tests.conftest import filter_request_uri, filter_response, cassette_name, FILTER_REQUEST_HEADERS, FILTER_RESPONSE_HEADERS
6+
from tests.conftest import filter_request_uri, filter_response, cassette_name, FILTER_REQUEST_HEADERS
87
from phpypam import PHPyPAMEntityNotFoundException
98

109

tests/test_cases/search_section_by_name.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
"""Tests to check section search via url parameters."""
2-
import phpypam
32
import pytest
43
import vcr
54
import yaml
65

7-
from tests.conftest import filter_request_uri, filter_response, cassette_name, FILTER_REQUEST_HEADERS, FILTER_RESPONSE_HEADERS
6+
from tests.conftest import filter_request_uri, filter_response, cassette_name, FILTER_REQUEST_HEADERS
87
from phpypam import PHPyPAMEntityNotFoundException
98

109

tests/test_cases/search_subnet.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
"""Test search for subnet."""
22
import pytest
3-
import phpypam
43
import vcr
54
import yaml
65

7-
from tests.conftest import filter_request_uri, filter_response, cassette_name, FILTER_REQUEST_HEADERS, FILTER_RESPONSE_HEADERS
6+
from tests.conftest import filter_request_uri, filter_response, cassette_name, FILTER_REQUEST_HEADERS
87
from phpypam import PHPyPAMEntityNotFoundException
98

109

0 commit comments

Comments
 (0)