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 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 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