From 642c8582d1eb86cf8d6918072cc08cfdfe483343 Mon Sep 17 00:00:00 2001 From: Shelby Potts Date: Sun, 16 Feb 2025 12:07:39 -0600 Subject: [PATCH 1/2] basic pytest setup --- pytest.ini | 3 +++ requirements.txt | 5 +++++ 2 files changed, 8 insertions(+) create mode 100644 pytest.ini diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 0000000..33cfba4 --- /dev/null +++ b/pytest.ini @@ -0,0 +1,3 @@ +[pytest] +testpaths = tests +addopts = -v # Verbose output \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 0dac324..62cdb99 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,9 +7,11 @@ dash-core-components==2.0.0 dash-html-components==2.0.0 dash-mantine-components==0.12.1 dash-table==5.0.0 +exceptiongroup==1.2.2 Flask==3.0.3 idna==3.10 importlib_metadata==8.6.1 +iniconfig==2.0.0 itsdangerous==2.2.0 Jinja2==3.1.5 loguru==0.7.3 @@ -20,12 +22,15 @@ numpy==2.0.2 packaging==24.2 pandas==2.2.3 plotly==6.0.0 +pluggy==1.5.0 +pytest==8.3.4 python-dateutil==2.9.0.post0 python-dotenv==1.0.1 pytz==2025.1 requests==2.32.3 retrying==1.3.4 six==1.17.0 +tomli==2.2.1 typing_extensions==4.12.2 tzdata==2025.1 urllib3==2.3.0 From b7a51217eee67a16050669ca60ec95358f0fb1d0 Mon Sep 17 00:00:00 2001 From: Shelby Potts Date: Mon, 17 Feb 2025 08:41:49 -0600 Subject: [PATCH 2/2] changed pytest ini file --- pytest.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pytest.ini b/pytest.ini index 33cfba4..3fdf542 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,3 +1,3 @@ [pytest] -testpaths = tests -addopts = -v # Verbose output \ No newline at end of file +python_files = test_*.py *_test.py +addopts = --tb=short -ra \ No newline at end of file