Repository: eshaan7/Flask-Shell2HTTP (language: python)

Issue:
Enable ci/tests for python 3.10



Discussion / hints:

Fix patch:
diff --git a/.codecov.yml b/.codecov.yml
new file mode 100644
index 0000000..d2fdd9a
--- /dev/null
+++ b/.codecov.yml
@@ -0,0 +1,20 @@
+codecov:
+  require_ci_to_pass: yes
+
+coverage:
+  precision: 2
+  round: down
+  range: "80...100"
+
+parsers:
+  gcov:
+    branch_detection:
+      conditional: yes
+      loop: yes
+      method: no
+      macro: no
+
+comment:
+  layout: "reach,diff,flags,files,footer"
+  behavior: default
+  require_changes: true
diff --git a/.coveragerc b/.coveragerc
index 989db4a..f7ea079 100644
--- a/.coveragerc
+++ b/.coveragerc
@@ -1,6 +1,6 @@
 [run]
 branch = True
-source = flask-shell2http
+source = flask_shell2http
 omit = 
     examples/*
 
diff --git a/requirements.dev.txt b/requirements.dev.txt
index 8f5a3e9..3ce74c7 100644
--- a/requirements.dev.txt
+++ b/requirements.dev.txt
@@ -1,5 +1,4 @@
 flask_testing
-nose
 codecov
 tox
 tox-gh-actions
diff --git a/tox.ini b/tox.ini
index 80c9fad..922d702 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,18 +1,12 @@
 [tox]
 envlist =
-    flake8,
     docs-html,
-    py{36,37,38,39}-flask1
-    py{36,37,38,39}-flask2
-
-[testenv:flake8]
-changedir = {toxinidir}
-commands = flake8 . --count
-deps = flake8
+    py{36,37,38,39,310}-flask1
+    py{36,37,38,39,310}-flask2
 
 [testenv]
 commands =
-    nosetests --with-coverage
+    coverage run -m unittest discover tests
 setenv =
     PIP_INDEX_URL = https://pypi.python.org/simple/
 deps =
@@ -24,8 +18,9 @@ deps =
 python =
     3.6: py36
     3.7: py37
-    3.8: py38
-    3.9: py39, flake8, docs-html
+    3.8: py38, docs-html
+    3.9: py39
+    3.10: py310
 
 # Configuration for coverage and flake8 is being set in `./setup.cfg`
 [testenv:codecov]


Test patch:
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 2553acb..7aee758 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -7,9 +7,9 @@ jobs:
     runs-on: ubuntu-latest
     strategy:
       fail-fast: false
-      max-parallel: 4
+      max-parallel: 5
       matrix:
-        python-version: ['3.6', '3.7', '3.8', '3.9']
+        python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
 
     steps:
     - uses: actions/checkout@v2
diff --git a/tests/test_basic.py b/tests/test_basic.py
index acccdc2..b3da5a8 100644
--- a/tests/test_basic.py
+++ b/tests/test_basic.py
@@ -2,7 +2,7 @@
 
 from examples.basic import app, shell2http
 
-from ._utils import CustomTestCase, post_req_keys, get_req_keys
+from tests._utils import CustomTestCase, post_req_keys, get_req_keys
 
 
 class TestBasic(CustomTestCase):
diff --git a/tests/test_callback_signal.py b/tests/test_callback_signal.py
index 64b1502..51198bd 100644
--- a/tests/test_callback_signal.py
+++ b/tests/test_callback_signal.py
@@ -1,6 +1,6 @@
 from examples.with_signals import app, my_signal
 
-from ._utils import CustomTestCase
+from tests._utils import CustomTestCase
 
 
 class TestCallbackAndSignal(CustomTestCase):
diff --git a/tests/test_decorators.py b/tests/test_decorators.py
index 2ad0295..c570b7b 100644
--- a/tests/test_decorators.py
+++ b/tests/test_decorators.py
@@ -1,6 +1,6 @@
 from examples.with_decorators import app
 
-from ._utils import CustomTestCase
+from tests._utils import CustomTestCase
 
 
 class TestDecorators(CustomTestCase):
diff --git a/tests/test_multiple_files.py b/tests/test_multiple_files.py
index d1c9a1f..cf5be5d 100644
--- a/tests/test_multiple_files.py
+++ b/tests/test_multiple_files.py
@@ -3,7 +3,7 @@
 
 from examples.multiple_files import app
 
-from ._utils import CustomTestCase
+from tests._utils import CustomTestCase
 
 
 class TestMultipleFiles(CustomTestCase):