Skip to content

Commit

Permalink
fix: library path in tester charm CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ca-scribner committed Jun 28, 2023
1 parent d4627ce commit e880538
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/integration/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@


@pytest.fixture(scope="module")
def copy_grafana_libraries_into_tester_charm() -> None:
def copy_libraries_into_tester_charm() -> None:
"""Ensure that the tester charms use the current libraries."""
lib = Path("lib/charms/kubeflow_dashboard/v1/kubeflow_dashboard_sidebar.py")
lib = Path("lib/charms/kubeflow_dashboard/v0/kubeflow_dashboard_sidebar.py")
Path(SIDEBAR_REQUIRER_TESTER_CHARM_PATH, lib.parent).mkdir(parents=True, exist_ok=True)
shutil.copyfile(lib.as_posix(), (SIDEBAR_REQUIRER_TESTER_CHARM_PATH / lib).as_posix())

Expand Down Expand Up @@ -140,7 +140,7 @@ async def test_configmap_contents_no_relations(lightkube_client: Client):

@pytest.mark.asyncio
async def test_configmap_contents_with_relations(
ops_test: OpsTest, copy_grafana_libraries_into_tester_charm, lightkube_client: Client
ops_test: OpsTest, copy_libraries_into_tester_charm, lightkube_client: Client
):
"""Tests the contents of the dashboard sidebar link configmap when relations are present."""
tester1 = "kubeflow-dashboard-requirer-tester1"
Expand Down

0 comments on commit e880538

Please sign in to comment.