Closed yildizahmetali closed 1 month ago
This PR has changes to 725 files, because you committed a node_modules directory. Please don't commit that. I highly recommend updating the .gitignore file to prevent this problem in the future.
The Branch you started was from your own previous one? since it doesn't carry forward all the previous changes made by the team.
What was changed?
Added server-side tests for the Flask application. The main components affected include the file upload routes, the JSON-to-CSV conversion logic, and the CSV download functionality. These tests are meant to ensure that the server operates correctly when handling various types of inputs, both valid and invalid.
Created a new tests folder inside the application directory. Added test_server.py which includes tests for: file_upload() download_csv() process_pdf() receive_message() General route handling (e.g., /api/data).
Why was it changed?
The application previously did not have any automated server-side tests, making it difficult to ensure that the Flask API routes and the processing logic worked as expected. These tests were added to increase code coverage, ensure functionality, and prevent potential bugs during future development.
How was it changed?
I created a new test file named test_server.py located in the application/tests/ directory. Using the pytest framework, I wrote tests that simulate different HTTP requests (e.g., POST, GET) to verify that the endpoints are functioning correctly.