feat: label source branch deletion security events
This commit is contained in:
1 parent
07f5770aa8
commit
b6684bb7ba
2 files changed
+7
No files matched your search
@@ -6,6 +6,12 @@ from pathlib import Path
|
||||
SECURITY_CENTER = Path(__file__).parents[1] / "frontend" / "security-center.js"
|
||||
|
||||
|
||||
def test_source_branch_cleanup_has_a_specific_security_activity_label():
|
||||
source = SECURITY_CENTER.read_text()
|
||||
|
||||
assert "source_branch_deleted: 'Source branch deleted'" in source
|
||||
|
||||
|
||||
def test_open_security_center_loads_all_sections_concurrently_and_is_awaitable():
|
||||
harness = f"""
|
||||
const attachSecurityCenter=require({json.dumps(str(SECURITY_CENTER))});
|
||||
|
||||
Reference in new issue
Block a user