Skip to content

Test/files mocked#11

Open
berthetclement wants to merge 7 commits intomainfrom
test/filesMocked
Open

Test/files mocked#11
berthetclement wants to merge 7 commits intomainfrom
test/filesMocked

Conversation

@berthetclement
Copy link
Copy Markdown
Collaborator

No description provided.

berthetclement and others added 7 commits December 9, 2025 17:52
…`uv.lock` accordingly, and include new test data files
- Added new reference CSV files (`ref_pays.csv`, `ref_links.csv`, `study_scenario.csv`, `peak_hours.csv`, `peak_months.csv`) for parameterized tests.
- Updated `test_links.py` with new fixtures and global configurations.
- Fixed test inputs for `links.create_links_part` to support additional reference parameters.
…ssing logic

- Removed obsolete test files from `data_test` directory.
- Enhanced median calculation logic in `links.create_links_part` and incorporated reference parameters (`peak_hours`, `peak_months`).
- Updated `test_links.py` to include `ref_params` for updated data handling logic.
…ring, and add type hints

- Improved median calculation logic in `links.create_links_part` with grouped pivoting and merging approaches.
- Added new `scenario_filter` function for scenario-based filtering with type annotations.
- Updated `test_links.py` to incorporate new logic and additional parameters like `calendar_year`.
…inks` module

- Introduced `LocalConfiguration` class for managing input configuration paths, with validation checks for directories and scenario names.
- Refactored `create_links_part` to use `LocalConfiguration` for enhanced clarity and reusability.
- Replaced `LinksFileNames` with `LinksFileConfig` for better encapsulation of link file names.
- Added new unit tests for `LocalConfiguration` validation.
…ta processing logic

- Renamed `data_references` to `data_references_path` and added `calendar_year` in `LocalConfiguration`.
- Updated `create_links_part` to integrate `.xlsx` reading for peak hours, months, and scenarios.
- Refactored handling of `Transfer Links` and `NTCs Index` by replacing hardcoded filenames with `LinksFileConfig`.
- Added `openpyxl` as a dependency for Excel file support and updated `uv.lock` and `pyproject.toml`.
- Replaced `ref_params` with `LocalConfiguration` in tests and introduced new fixtures for mocking Excel data.
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

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.

2 participants