Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created unit tests #1

Merged
merged 5 commits into from
Feb 11, 2025
Merged

Created unit tests #1

merged 5 commits into from
Feb 11, 2025

Conversation

drache42
Copy link
Owner

This pull request includes significant changes to the Flask application structure, Docker setup, and testing framework. The most important changes involve the restructuring of the application into a modular format, updating the Docker configuration, and enhancing the testing suite.

Application Restructuring:

Docker Configuration:

  • docker/Dockerfile: Updated the Dockerfile to reflect the new application structure, including changes to the COPY command and environment variables. [1] [2]

Testing Enhancements:

  • tests/test_app.py: Added tests for the create_app and validate_env_variables functions to ensure proper application configuration and environment variable validation.
  • tests/test_logging_config.py: Added tests for the logging configuration to verify correct logging levels based on the debug mode.
  • tests/test_status.py: Added comprehensive tests for the status blueprint, including tests for different URL status scenarios and multiple application instances.

Documentation Update:

  • README.md: Updated the instructions for creating the .vscode/launch.json file to reflect the new application structure and added the PYTHONPATH environment variable.

Dependency Management:

  • pyproject.toml: Added new dependencies and configurations for testing and linting, including pytest-cov and ruff. [1] [2]
  • src/requirements.txt: Removed redundant dependencies as they are now managed through pyproject.toml.

@drache42 drache42 merged commit 0f64cf1 into main Feb 11, 2025
@drache42 drache42 deleted the dev/create-tests branch February 11, 2025 03:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant