From 56e25c4c1f61dea1ca46f91a6a2cfba3377763ad Mon Sep 17 00:00:00 2001 From: gapcomputer Date: Fri, 23 May 2025 22:04:18 +0000 Subject: [PATCH 1/4] Start draft PR From 12f52287154abe02dc857f7e565596312bcfd6b0 Mon Sep 17 00:00:00 2001 From: gapcomputer Date: Fri, 23 May 2025 22:04:41 +0000 Subject: [PATCH 2/4] Add pytest to requirements.txt --- requirements.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index ae5b535..5027b5f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -36,6 +36,7 @@ pyasn1==0.4.8 pyasn1-modules==0.2.8 pycryptodome==3.9.7 pylint==2.5.0 +pytest==8.3.1 python-pptx==0.6.18 pytz==2020.1 requests==2.23.0 @@ -55,4 +56,4 @@ urllib3==1.25.9 Werkzeug==1.0.1 wrapt==1.12.1 xlrd==1.2.0 -XlsxWriter==1.2.8 +XlsxWriter==1.2.8 \ No newline at end of file From 6f4b0c1e87e69d8455a7c51fb7f7e50ad968e7df Mon Sep 17 00:00:00 2001 From: gapcomputer Date: Fri, 23 May 2025 22:04:48 +0000 Subject: [PATCH 3/4] Add pytest configuration file --- tests/conftest.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/conftest.py diff --git a/tests/conftest.py b/tests/conftest.py new file mode 100644 index 0000000..81c5794 --- /dev/null +++ b/tests/conftest.py @@ -0,0 +1,10 @@ +""" +Pytest configuration file for the project. +This file helps configure global pytest settings and provides shared fixtures. +""" +import pytest +import sys +import os + +# Ensure the project root directory is in the Python path +sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) \ No newline at end of file From 378255fdf37953b26668edc87c5475420290daef Mon Sep 17 00:00:00 2001 From: gapcomputer Date: Fri, 23 May 2025 22:04:54 +0000 Subject: [PATCH 4/4] Add initial pytest setup test --- tests/test_setup.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/test_setup.py diff --git a/tests/test_setup.py b/tests/test_setup.py new file mode 100644 index 0000000..2ffbc9e --- /dev/null +++ b/tests/test_setup.py @@ -0,0 +1,9 @@ +""" +Basic test to verify pytest setup and project configuration. +""" +def test_pytest_setup(): + """ + Simple test to confirm pytest is working correctly. + This test always passes to verify the testing framework is operational. + """ + assert True, "Pytest setup is working correctly" \ No newline at end of file