app resource: fix boring test edge case related to the initial properties object being modified

This commit is contained in:
Alexandre Aubin 2023-01-06 03:50:22 +01:00
parent 61a6d5bbac
commit cddfafaa55

View file

@ -940,7 +940,7 @@ class DatabaseAppResource(AppResource):
# Hack so that people can write type = "mysql/postgresql" in toml but it's loaded as dbtype # Hack so that people can write type = "mysql/postgresql" in toml but it's loaded as dbtype
# to avoid conflicting with the generic self.type of the resource object ... # to avoid conflicting with the generic self.type of the resource object ...
# dunno if that's really a good idea :| # dunno if that's really a good idea :|
properties["dbtype"] = properties.pop("type") properties = {"dbtype": properties["type"]}
super().__init__(properties, *args, **kwargs) super().__init__(properties, *args, **kwargs)