Skip to content

Conversation

@zulquer
Copy link
Collaborator

@zulquer zulquer commented Apr 23, 2025

This pull request removes the sdk_version attribute and its associated functionality from the Plugin and Version classes, simplifying the codebase. Additionally, it cleans up related dependencies and updates the test suite accordingly.

Removal of sdk_version functionality:

Dependency cleanup:

  • pyproject.toml: Removed the toml dependency, which was previously used for detecting the SDK version.
  • src/multisafepay/util/version.py: Removed unused imports related to the sdk_version functionality, including Path, parse, and MissingPluginVersionException.

Test suite updates:

@zulquer zulquer requested review from Copilot and danielcivit April 23, 2025 14:05
Copy link

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 pull request removes the sdk_version attribute and its associated functionality from the Plugin and Version classes to simplify the codebase and clean up dependencies.

  • Removed all sdk_version references and methods from both Plugin and Version classes.
  • Updated the test suite to reflect the sdk_version removal and cleaned up unused dependencies in pyproject.toml.

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/multisafepay/unit/util/test_unit_version.py Removed sdk_version references from tests and updated version serialization/deserialization tests.
tests/multisafepay/unit/api/path/orders/request/components/test_unit_plugin.py Removed tests for add_sdk_version and sdk_version checks in Plugin.
src/multisafepay/util/version.py Removed sdk_version attribute, related methods, and dependency on tomlkit for sdk_version detection.
src/multisafepay/api/paths/orders/request/components/plugin.py Removed sdk_version attribute and related method from the Plugin class.
pyproject.toml Removed the toml dependency no longer needed for sdk_version detection.

Comment on lines 86 to 88
print(version.get_version())
assert version.get_version() == "Plugin 1.0.1"

Copy link

Copilot AI Apr 23, 2025

Choose a reason for hiding this comment

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

Remove the print statement used for debugging in the test_version_get_version test to keep the test output clean.

Suggested change
print(version.get_version())
assert version.get_version() == "Plugin 1.0.1"

Copilot uses AI. Check for mistakes.
@codecov
Copy link

codecov bot commented Apr 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.71%. Comparing base (1409417) to head (99bdd5f).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master       #8      +/-   ##
==========================================
- Coverage   90.72%   90.71%   -0.01%     
==========================================
  Files         106      106              
  Lines        2317     2293      -24     
==========================================
- Hits         2102     2080      -22     
+ Misses        215      213       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@danielcivit danielcivit merged commit 3e76847 into master Apr 23, 2025
7 checks passed
@danielcivit danielcivit deleted the PTHMINT-64 branch April 23, 2025 14:32
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.

3 participants