From 307ee9ae3e05bcfc02ecebe2e0a67f5c7ad7b8bc Mon Sep 17 00:00:00 2001 From: Allan Nava Date: Thu, 19 Oct 2023 11:10:24 +0200 Subject: [PATCH] fix: removed for now tests --- docs/source/changelog.rst | 1 + docs/source/readme.rst | 1 + pyproject.toml | 10 +++++ src/compress/tests/__init__.py | 0 src/compress/tests/test_connection.py | 53 --------------------------- tox.ini | 24 ++++++------ 6 files changed, 24 insertions(+), 65 deletions(-) create mode 100644 docs/source/changelog.rst create mode 100644 docs/source/readme.rst delete mode 100644 src/compress/tests/__init__.py delete mode 100644 src/compress/tests/test_connection.py diff --git a/docs/source/changelog.rst b/docs/source/changelog.rst new file mode 100644 index 0000000..0520a4c --- /dev/null +++ b/docs/source/changelog.rst @@ -0,0 +1 @@ +.. mdinclude:: ../../CHANGELOG.md \ No newline at end of file diff --git a/docs/source/readme.rst b/docs/source/readme.rst new file mode 100644 index 0000000..57de865 --- /dev/null +++ b/docs/source/readme.rst @@ -0,0 +1 @@ +.. mdinclude:: ../../README.md \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 10bd56d..12428fe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,3 +44,13 @@ freezegun = ">=1.2.2" [build-system] requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" + +[tool.black] +line-length = 99 + +[tool.isort] +line_length = 99 +profile = "black" + +[tool.darglint] +enable = "DAR104" \ No newline at end of file diff --git a/src/compress/tests/__init__.py b/src/compress/tests/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/src/compress/tests/test_connection.py b/src/compress/tests/test_connection.py deleted file mode 100644 index 976c947..0000000 --- a/src/compress/tests/test_connection.py +++ /dev/null @@ -1,53 +0,0 @@ -# -*- coding: utf-8 -*- -# -# MIT License -# -# Copyright (c) 2023 Hiway Media -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. -# -from unittest import mock -import requests -from ..constants import * -from httmock import urlmatch, response, HTTMock, all_requests -# -try: - import unittest -except ImportError: - import unittest2 as unittest -# -# -class TestConnection(unittest.TestCase): - # - def setUp(self): - self._conn = requests.Session() - # - #@all_requests - #def response_content_success(self, url, request): - # headers = {'content-type': 'application/json'} - # content = b'response_ok' - # return response(200, content, headers, None, 5, request) - # - #def test_raw_get(self): - # with HTTMock(self.response_content_success): - # resp = self._conn.get(TNGRM_BASE_URL + "/health") - # self.assertEqual(resp.content, b'response_ok') - # self.assertEqual(resp.status_code, 200) - # -# \ No newline at end of file diff --git a/tox.ini b/tox.ini index d9c4112..2181967 100644 --- a/tox.ini +++ b/tox.ini @@ -10,16 +10,16 @@ commands_pre = [testenv:check] commands = - black --check --diff src/compress tests docs - isort -c --df src/compress tests docs - flake8 src/compress tests docs - codespell src tests docs + black --check --diff src/compress docs + isort -c --df src/compress docs + flake8 src/compress docs + codespell src docs [testenv:apply-check] commands = - black -C src/compress tests docs - black src/compress tests docs - isort src/compress tests docs + black -C src/compress docs + black src/compress docs + isort src/compress docs [testenv:docs] commands_pre = @@ -27,11 +27,11 @@ commands_pre = commands = sphinx-build -T -E -W -b html -d _build/doctrees -D language=en ./docs/source _build/html -[testenv:tests] -setenv = file|tox.env -passenv = CONTAINER_HOST,compress_DOCKER_IMAGE_TAG -commands = - ./test_compress_init.sh "pytest -vv --cov=compress --cov-report term-missing {posargs}" +#[testenv:tests] +#setenv = file|tox.env +#passenv = CONTAINER_HOST,compress_DOCKER_IMAGE_TAG +#commands = +# ./test_compress_init.sh "pytest -vv --cov=compress --cov-report term-missing {posargs}" [testenv:build] commands =