allow update for uploaded routes and implement creator id for routes
Sonarqube Scanner / Prepare environment (push) Successful in 8s
Sonarqube Scanner / Build and test (push) Successful in 21s
Sonarqube Scanner / SonarQube analysis (push) Failing after 1m3s
Sonarqube Scanner / Deploy to Server (push) Successful in 6s

This commit is contained in:
Florian Zumpe
2026-10-03 16:43:08 +02:00
parent 4b8bdcad5f
commit 0db91660b3
20 changed files with 423 additions and 91 deletions
+8
View File
@@ -57,6 +57,14 @@ class ModerationTests(unittest.TestCase):
self.assertIsNone(self.activation())
self.assertIsNone(self.activation(2))
def test_creator_id_is_shown_in_listing(self):
identity = 'a' * 64
with sqlite3.connect(self.path) as database:
database.execute('UPDATE routes SET creator_id=? WHERE id=1', (identity,))
self.assertEqual(self.run_cli([]), 0)
self.assertIn('Ersteller-ID', self.out.getvalue())
self.assertIn(identity, self.out.getvalue())
def test_aliases(self):
for flag in ["--enable", "--enanble"]:
self.assertEqual(self.run_cli([flag, "1"]), 0)