Publish curated ITWorx_MCP_Hub source from 6c7434368ce2a594005983c5a6601a31a639e7f1
This commit is contained in:
1 parent
77946d62c4
commit
6d40ab975c
86 files changed
+6784
-1478
No files matched your search
@@ -267,8 +267,7 @@ class GiteaConnectorTests(unittest.TestCase):
|
||||
"Jens/projectbrain",
|
||||
PROJECTBRAIN_VALIDATION_WORKFLOW.replace(
|
||||
" - name: Validate repository with a bounded profile\n",
|
||||
" - name: Validate repository with a bounded profile\n"
|
||||
" if: false\n",
|
||||
" - name: Validate repository with a bounded profile\n if: false\n",
|
||||
),
|
||||
)
|
||||
)
|
||||
@@ -293,14 +292,11 @@ class GiteaConnectorTests(unittest.TestCase):
|
||||
bypass_mutations = (
|
||||
PROJECTBRAIN_VALIDATION_WORKFLOW.replace(
|
||||
" pnpm test:e2e:real\n",
|
||||
" cat <<'EOF'\n"
|
||||
" pnpm test:e2e:real\n"
|
||||
" EOF\n",
|
||||
" cat <<'EOF'\n pnpm test:e2e:real\n EOF\n",
|
||||
),
|
||||
PROJECTBRAIN_VALIDATION_WORKFLOW.replace(
|
||||
" pnpm --dir backend test:database\n",
|
||||
" exit 0\n"
|
||||
" pnpm --dir backend test:database\n",
|
||||
" exit 0\n pnpm --dir backend test:database\n",
|
||||
),
|
||||
PROJECTBRAIN_VALIDATION_WORKFLOW.replace(
|
||||
" pnpm test:e2e:real\n",
|
||||
@@ -357,9 +353,7 @@ class GiteaConnectorTests(unittest.TestCase):
|
||||
"Jens/projectbrain", PROJECTBRAIN_VALIDATION_WORKFLOW + "\njobs: {}\n"
|
||||
)
|
||||
)
|
||||
self.assertIsNone(
|
||||
_managed_validation_profile("Acme/hub", PROJECTBRAIN_VALIDATION_WORKFLOW)
|
||||
)
|
||||
self.assertIsNone(_managed_validation_profile("Acme/hub", PROJECTBRAIN_VALIDATION_WORKFLOW))
|
||||
self.assertEqual(
|
||||
_managed_validation_profile("Acme/hub", MANAGED_VALIDATION_WORKFLOW),
|
||||
"canonical",
|
||||
@@ -1400,9 +1394,7 @@ class GiteaConnectorTests(unittest.TestCase):
|
||||
fixture._branch_protections["Jens/projectbrain"][0]["status_check_contexts"] = [
|
||||
"Pull request / quality (pull_request)"
|
||||
]
|
||||
original_protection = copy.deepcopy(
|
||||
fixture._branch_protections["Jens/projectbrain"][0]
|
||||
)
|
||||
original_protection = copy.deepcopy(fixture._branch_protections["Jens/projectbrain"][0])
|
||||
try:
|
||||
current = context()
|
||||
preview = connector_instance.branch_protection_preview(
|
||||
@@ -1467,9 +1459,9 @@ class GiteaConnectorTests(unittest.TestCase):
|
||||
nonlocal read_count
|
||||
read_count += 1
|
||||
if read_count == 3:
|
||||
fixture._branch_protections["Jens/projectbrain"][0][
|
||||
"status_check_contexts"
|
||||
].remove("Additional required check")
|
||||
fixture._branch_protections["Jens/projectbrain"][0]["status_check_contexts"].remove(
|
||||
"Additional required check"
|
||||
)
|
||||
return original_read(repository)
|
||||
|
||||
try:
|
||||
@@ -1704,9 +1696,9 @@ class GiteaConnectorTests(unittest.TestCase):
|
||||
nonlocal read_count
|
||||
read_count += 1
|
||||
if read_count == 3:
|
||||
fixture._branch_protections["Jens/projectbrain"][0][
|
||||
"status_check_contexts"
|
||||
].remove("Additional required check")
|
||||
fixture._branch_protections["Jens/projectbrain"][0]["status_check_contexts"].remove(
|
||||
"Additional required check"
|
||||
)
|
||||
return original_read(repository)
|
||||
|
||||
try:
|
||||
|
||||
Reference in new issue
Block a user