Skip to content

Add tests for exporting params to file#889

Merged
1Blademaster merged 3 commits intomainfrom
888-add-tests-for-saving-params-to-file
Nov 28, 2025
Merged

Add tests for exporting params to file#889
1Blademaster merged 3 commits intomainfrom
888-add-tests-for-saving-params-to-file

Conversation

@1Blademaster
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings November 28, 2025 21:50
@1Blademaster 1Blademaster linked an issue Nov 28, 2025 that may be closed by this pull request
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds comprehensive test coverage for the export params to file functionality. The tests verify proper error handling for various edge cases and successful file export with content validation.

  • Tests for wrong application state, missing file path, incorrect file path, and successful export
  • New fixtures for cleaning up exported files and injecting test parameters
  • Test data file containing 1384 parameter entries in .parm format

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
radio/tests/test_params.py Adds PARAM_FILES_PATH constant, two test fixtures (delete_export_files and inject_params), and four test functions covering various scenarios for param export functionality
radio/tests/param_test_files/inject_params.parm Provides test data with 1384 parameter entries used for validating successful export operations

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread radio/tests/test_params.py Outdated
Comment thread radio/tests/test_params.py
@1Blademaster 1Blademaster requested a review from a team November 28, 2025 22:05
@1Blademaster 1Blademaster merged commit ca01761 into main Nov 28, 2025
6 checks passed
@1Blademaster 1Blademaster deleted the 888-add-tests-for-saving-params-to-file branch November 28, 2025 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add tests for saving params to file

3 participants