Skip to content

Commit e001ea4

Browse files
ci
1 parent 0d6b511 commit e001ea4

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/workflows/run_mapdl_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
uv pip install --system tests/launcher/pkg_with_entrypoint
4343
- name: Run tests
4444
run: |
45-
uv run pytest -vx --cov=${{ env.PACKAGE_NAMESPACE }} --cov-report=term --cov-report=xml:.cov/coverage.xml --cov-report=html:.cov/html
45+
python -m pytest -vx --cov=${{ env.PACKAGE_NAMESPACE }} --cov-report=term --cov-report=xml:.cov/coverage.xml --cov-report=html:.cov/html
4646
4747
# - uses: codecov/codecov-action@v5
4848
# name: 'Upload coverage to CodeCov'

tests/launcher/test_entry_point.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,18 @@
2424
import pkg_with_entrypoint
2525

2626
from ansys.tools.common.launcher._plugins import (
27+
get_all_plugins,
2728
get_config_model,
2829
get_launcher,
2930
)
3031
from ansys.tools.common.launcher.config import get_config_for, get_launch_mode_for
3132

32-
# def test_plugin_found():
33-
# """Test that the plugin is found in the plugin dictionary."""
34-
# plugin_dict = get_all_plugins()
35-
# assert "pkg_with_entrypoint" in plugin_dict
36-
# assert "test_entry_point" in plugin_dict["pkg_with_entrypoint"]
33+
34+
def test_plugin_found():
35+
"""Test that the plugin is found in the plugin dictionary."""
36+
plugin_dict = get_all_plugins()
37+
assert "pkg_with_entrypoint" in plugin_dict
38+
assert "test_entry_point" in plugin_dict["pkg_with_entrypoint"]
3739

3840

3941
def test_get_launcher():

0 commit comments

Comments
 (0)