mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-10-08 14:54:36 +00:00
Execute tests for maps
This commit is contained in:
parent
eb790a8ce2
commit
51a026611b
2 changed files with 13 additions and 0 deletions
|
|
@ -205,6 +205,10 @@ def auto_apply_version_metadata(last_commit_sha):
|
|||
category_json = utilities.apply_version_metadata_to_null_version_values(last_commit_sha)
|
||||
utilities.save(category_json)
|
||||
|
||||
maps = CategoryVersionMetadata(os.path.join("plugins", "maps"))
|
||||
category_json = maps.apply_version_metadata_to_null_version_values(last_commit_sha)
|
||||
maps.save(category_json)
|
||||
|
||||
minigames = CategoryVersionMetadata(os.path.join("plugins", "minigames"))
|
||||
category_json = minigames.apply_version_metadata_to_null_version_values(last_commit_sha)
|
||||
minigames.save(category_json)
|
||||
|
|
|
|||
|
|
@ -163,6 +163,15 @@ class TestUtilitiesCategoryMetadata(BaseCategoryMetadataTestCases.BaseTest):
|
|||
self.content = json.load(fin)
|
||||
|
||||
|
||||
class TestMapsCategoryMetadata(BaseCategoryMetadataTestCases.BaseTest):
|
||||
def setUp(self):
|
||||
super().setUp()
|
||||
self.name = "Maps"
|
||||
self.category = os.path.join("plugins", "maps")
|
||||
with open(f"{self.category}.json", "rb") as fin:
|
||||
self.content = json.load(fin)
|
||||
|
||||
|
||||
class TestMinigamesCategoryMetadata(BaseCategoryMetadataTestCases.BaseTest):
|
||||
def setUp(self):
|
||||
super().setUp()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue