forked from phenom/healer-man
Update Healer Man server
This commit is contained in:
1 parent
a05a79eb83
commit
f8314e7de1
14 files changed
+529
-108
No files matched your search
@@ -22,6 +22,10 @@ class VersionTests(unittest.TestCase):
|
||||
|
||||
|
||||
class SafetyTests(unittest.TestCase):
|
||||
def test_safe_update_options_are_enabled_by_default(self):
|
||||
self.assertTrue(release_manager.DEFAULT_GIT_TRUENAS_ONLY)
|
||||
self.assertTrue(release_manager.DEFAULT_RUN_TESTS)
|
||||
|
||||
def test_detects_outputs_and_secrets(self):
|
||||
paths = [
|
||||
"src/game/example.ts",
|
||||
@@ -54,6 +58,28 @@ class SafetyTests(unittest.TestCase):
|
||||
self.assertLess(publish_index, commands.index(["npm", "run", "build"]))
|
||||
self.assertLess(publish_index, commands.index(["npm", "run", "android:sync"]))
|
||||
|
||||
def test_git_and_truenas_checks_skip_only_the_android_stage(self):
|
||||
checks = release_manager.full_release_checks("npm", include_android=False)
|
||||
commands = [command for command, _label in checks]
|
||||
self.assertIn(["npm", "run", "content:publish"], commands)
|
||||
self.assertIn(["npm", "run", "build"], commands)
|
||||
self.assertNotIn(["npm", "run", "android:sync"], commands)
|
||||
|
||||
def test_disabled_test_suites_keep_safety_and_build_checks(self):
|
||||
checks = release_manager.full_release_checks(
|
||||
"npm",
|
||||
include_android=False,
|
||||
include_tests=False,
|
||||
)
|
||||
commands = [command for command, _label in checks]
|
||||
self.assertEqual(
|
||||
commands,
|
||||
[
|
||||
["npm", "run", "content:publish"],
|
||||
["npm", "run", "build"],
|
||||
],
|
||||
)
|
||||
|
||||
def test_only_test_failures_may_be_overridden(self):
|
||||
checks = release_manager.full_release_checks("npm")
|
||||
overridable = {
|
||||
|
||||
Reference in new issue
Block a user