diff --git a/charmcraft/templates/init-kubernetes/tests/integration/test_charm.py.j2 b/charmcraft/templates/init-kubernetes/tests/integration/test_charm.py.j2 index dcd318ac3..41ce29c83 100644 --- a/charmcraft/templates/init-kubernetes/tests/integration/test_charm.py.j2 +++ b/charmcraft/templates/init-kubernetes/tests/integration/test_charm.py.j2 @@ -12,7 +12,7 @@ from pytest_operator.plugin import OpsTest logger = logging.getLogger(__name__) -METADATA = yaml.safe_load(Path("./metadata.yaml").read_text()) +METADATA = yaml.safe_load(Path("./charmcraft.yaml").read_text()) APP_NAME = METADATA["name"] diff --git a/charmcraft/templates/init-machine/tests/integration/test_charm.py.j2 b/charmcraft/templates/init-machine/tests/integration/test_charm.py.j2 index f1f188aad..fb3e4575c 100644 --- a/charmcraft/templates/init-machine/tests/integration/test_charm.py.j2 +++ b/charmcraft/templates/init-machine/tests/integration/test_charm.py.j2 @@ -12,7 +12,7 @@ from pytest_operator.plugin import OpsTest logger = logging.getLogger(__name__) -METADATA = yaml.safe_load(Path("./metadata.yaml").read_text()) +METADATA = yaml.safe_load(Path("./charmcraft.yaml").read_text()) APP_NAME = METADATA["name"] diff --git a/charmcraft/templates/init-simple/tests/integration/test_charm.py.j2 b/charmcraft/templates/init-simple/tests/integration/test_charm.py.j2 index 4ebf9a613..65033d3a0 100644 --- a/charmcraft/templates/init-simple/tests/integration/test_charm.py.j2 +++ b/charmcraft/templates/init-simple/tests/integration/test_charm.py.j2 @@ -12,7 +12,7 @@ from pytest_operator.plugin import OpsTest logger = logging.getLogger(__name__) -METADATA = yaml.safe_load(Path("./metadata.yaml").read_text()) +METADATA = yaml.safe_load(Path("./charmcraft.yaml").read_text()) APP_NAME = METADATA["name"]