Skip to content

Commit 600c709

Browse files
Merge branch 'tests/implement_basic_tests' into development
2 parents 0558f8f + 09ba4b1 commit 600c709

File tree

6 files changed

+41
-6
lines changed

6 files changed

+41
-6
lines changed

.gitignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,11 @@ wheels/
2525
.installed.cfg
2626
*.egg
2727

28-
# Tests & Documentation
29-
tests/
28+
# Dev Tests
29+
tests/dev
30+
.tox
31+
32+
# Documentation
3033
docs/build/
3134
docs/source/_build
3235
examples/generate_preconfig/preconfig_outputs

pyedgeconnect/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ def _put(
366366
class Orchestrator(HttpCommon):
367367
"""Orchestrator setup and imports related methods for making API
368368
calls to Orchestrator. Child class of :class:`HttpCommon`
369-
"""
369+
""" # noqa RST304
370370

371371
def __init__(
372372
self,
@@ -1224,7 +1224,7 @@ def __init__(
12241224
class EdgeConnect(HttpCommon):
12251225
"""Edge Connect setup and imports related methods for making API
12261226
calls to Edge Connect appliances. Child class of :class:`HttpCommon`
1227-
"""
1227+
""" # noqa RST304
12281228

12291229
def __init__(
12301230
self,

pyproject.toml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,30 @@ exclude = '''
1515
)/
1616
'''
1717

18+
[tool.isort]
19+
multi_line_output = 3
20+
include_trailing_comma = true
21+
force_grid_wrap = 0
22+
line_length = 79
23+
profile = "black"
24+
25+
[tool.tox]
26+
legacy_tox_ini = """
27+
28+
[tox]
29+
envlist = py37, py38, py39, py310
30+
31+
[testenv]
32+
deps = .[dev]
33+
commands =
34+
pytest
35+
36+
[testenv:format]
37+
commands =
38+
isort pyedgeconnect/. --check-only
39+
flake8 pyedgeconnect/.
40+
"""
41+
1842
[build-system]
1943
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4"]
2044
[tool.setuptools_scm]

setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,12 @@
3434
"Programming Language :: Python :: 3.7",
3535
"Programming Language :: Python :: 3.8",
3636
"Programming Language :: Python :: 3.9",
37+
"Programming Language :: Python :: 3.10",
3738
"Programming Language :: Python :: 3 :: Only",
3839
"Operating System :: OS Independent",
3940
"Natural Language :: English",
4041
],
41-
keywords="silver peak, silverpeak, silver peak python, aruba edge connect, edge connect",
42+
keywords="silverpeak, silverpeak python, aruba edgeconnect, edgeconnect",
4243
packages=find_packages(),
4344
package_dir={"pyedgeconnect": "pyedgeconnect"},
4445
python_requires=">=3.7, <4",
@@ -52,10 +53,11 @@
5253
"isort",
5354
"sphinx",
5455
"sphinx_rtd_theme",
56+
"pytest",
5557
],
5658
},
5759
project_urls={
58-
"Bug Reports": "https://github.com/SPOpenSource/edgeconnect-python/issues",
60+
"Bug Reports": "https://github.com/SPOpenSource/edgeconnect-python/issues", # noqa E501
5961
"Source": "https://github.com/SPOpenSource/edgeconnect-python/",
6062
},
6163
)

tests/__init__.py

Whitespace-only changes.

tests/test_import.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from pyedgeconnect import EdgeConnect, Orchestrator # noqa F401
2+
3+
4+
# def test_pass():
5+
def test_package_import():
6+
assert True

0 commit comments

Comments
 (0)