Skip to content

Commit 51a68fb

Browse files
committed
Fix tests on scmAccounts and email
1 parent ea18e70 commit 51a68fb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/test_migration.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,14 @@ def test_migration() -> None:
6868
assert json_config["users"]["olivier"]["externalProvider"] == "sonarqube"
6969

7070
u = json_config["users"]["olivier-korach65532"]
71+
assert u["name"] == "Olivier Korach"
72+
assert not u["local"]
7173
if util.SQ.version() >= (10, 0, 0):
7274
assert u["externalProvider"] == "github"
75+
assert u["externalLogin"] == "okorach"
76+
assert u["email"] == "[email protected]"
7377
else:
7478
assert u["externalProvider"] == "sonarqube"
75-
assert u["name"] == "Olivier Korach"
76-
assert not u["local"]
77-
assert u["externalLogin"] == "okorach"
78-
assert u["email"] == "[email protected]"
7979

8080
p = json_config["projects"]["okorach_sonar-tools"]
8181
assert "lastTaskScannerContext" in p["backgroundTasks"]

0 commit comments

Comments
 (0)