Fix/updated ig api and added tests #2528
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Test Suite Enhancements
This PR adds a comprehensive test suite to the Osintgram project, providing better code reliability and making future contributions easier.
What's New
Added Files
pytest.ini- Configuration for pytestconftest.py- Root-level test setup and dependency mockingtests/__init__.py- Package initializationtests/conftest.py- Test fixtures and setuptests/test_config.py- Tests for configuration handlingtests/test_osintgram.py- Tests for main Osintgram classtests/test_osintgram_mock.py- Mock-based tests for Osintgramtests/test_printcolors.py- Tests for terminal color outputrun_tests.py- Convenience script for running testsrequirements_dev.txt- Development dependenciesFixed Issues
Updated Documentation
make test- Run all testsmake test-cov- Run tests with coveragemake test-docker- Run tests in DockerTesting
The test suite verifies: