From 2ed18c63f5930f4c193fc1abcd2f0f1560916fe8 Mon Sep 17 00:00:00 2001 From: Carl Montanari Date: Sat, 6 Jun 2020 10:22:57 -0700 Subject: [PATCH] more clean up, loosen reqs pinning --- Makefile | 7 ------- requirements.txt | 4 ++-- scrapli_asyncssh/__init__.py | 2 +- tests/unit/test_pass.py | 2 -- tests/unit/transport/__init__.py | 0 tests/unit/transport/test_asyncssh_.py | 7 +++++++ tox.ini | 20 -------------------- 7 files changed, 10 insertions(+), 32 deletions(-) delete mode 100644 tests/unit/test_pass.py create mode 100644 tests/unit/transport/__init__.py create mode 100644 tests/unit/transport/test_asyncssh_.py delete mode 100644 tox.ini diff --git a/Makefile b/Makefile index d785d8c..6063d42 100644 --- a/Makefile +++ b/Makefile @@ -5,13 +5,6 @@ lint: python -m pydocstyle . python -m mypy scrapli_asyncssh/ -lint_full: - python -m isort -rc -y . - python -m black . - python -m pylama . - python -m pydocstyle . - python -m mypy scrapli_asyncssh/ - cov: python -m pytest \ --cov=scrapli_asyncssh \ diff --git a/requirements.txt b/requirements.txt index 153cce4..c23b802 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -asyncssh==2.2.1 -scrapli==2020.06.06 \ No newline at end of file +asyncssh>=2.2.1 +scrapli>=2020.06.06 \ No newline at end of file diff --git a/scrapli_asyncssh/__init__.py b/scrapli_asyncssh/__init__.py index bcf8cbe..eb7c942 100644 --- a/scrapli_asyncssh/__init__.py +++ b/scrapli_asyncssh/__init__.py @@ -1,3 +1,3 @@ """scrapli asyncssh transport plugin""" -__version__ = "2020.06.06" +__version__ = "2020.06.06a" diff --git a/tests/unit/test_pass.py b/tests/unit/test_pass.py deleted file mode 100644 index a8a8219..0000000 --- a/tests/unit/test_pass.py +++ /dev/null @@ -1,2 +0,0 @@ -def test_pass(): - pass diff --git a/tests/unit/transport/__init__.py b/tests/unit/transport/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/unit/transport/test_asyncssh_.py b/tests/unit/transport/test_asyncssh_.py new file mode 100644 index 0000000..4c3c4c5 --- /dev/null +++ b/tests/unit/transport/test_asyncssh_.py @@ -0,0 +1,7 @@ +from scrapli_asyncssh.transport import Transport + + +def test_creation(): + conn = Transport("localhost") + assert conn.host == "localhost" + assert conn.port == 22 diff --git a/tox.ini b/tox.ini deleted file mode 100644 index 294530d..0000000 --- a/tox.ini +++ /dev/null @@ -1,20 +0,0 @@ -[tox] -envlist = py36,py37,py38 - -[testenv] -deps = -rrequirements-dev.txt -commands = python -m pytest tests/unit/. - -[testenv:py38] -deps = -rrequirements-dev.txt -commands = - python -m pytest \ - --cov=scrapli_asyncssh \ - --cov-report html \ - --cov-report term \ - tests/unit/. - python -m isort -rc -y . - python -m black --check . - python -m pylama . - python -m pydocstyle . - python -m mypy scrapli_asyncssh/