Merge pull request #1595 from fengzeroz/main

ft env
This commit is contained in:
fengzeroz
2023-10-13 16:41:49 +08:00
committed by GitHub
3 changed files with 19 additions and 2 deletions
+1 -1
View File
@@ -141,7 +141,7 @@ jobs:
run: |
pip install -U pytest
pip install requests
pytest -s tests/ft
pytest -s -v tests/ft
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
+12
View File
@@ -0,0 +1,12 @@
import pytest
def pytest_addoption(parser):
parser.addoption(
"--env", default="github", choices=["github", "test"], help="enviroment parameter"
)
@pytest.fixture(autouse=True, scope="session")
def get_envx(request):
return request.config.getoption("--env")
+6 -1
View File
@@ -1,3 +1,8 @@
[pytest]
python_files = test_*.py
python_functions = test_*
python_functions = test_*
addopts = --strict-markers
markers =
test : 'test'