mirror of
https://github.com/openSUSE/osc.git
synced 2025-09-07 13:48:43 +02:00
store: Remove trailing slash from apiurl
This commit is contained in:
@@ -98,6 +98,14 @@ class TestStore(unittest.TestCase):
|
||||
store2 = Store(self.tmpdir)
|
||||
self.assertEqual(store2.apiurl, "https://example.com")
|
||||
|
||||
def test_apiurl_no_trailing_slash(self):
|
||||
self.store.apiurl = "https://example.com/"
|
||||
self.fileEquals("_apiurl", "https://example.com\n")
|
||||
|
||||
self.store.write_string("_apiurl", "https://example.com/")
|
||||
self.fileEquals("_apiurl", "https://example.com/\n")
|
||||
self.assertEqual(self.store.apiurl, "https://example.com")
|
||||
|
||||
def test_package(self):
|
||||
self.fileEquals("_package", "package name\n")
|
||||
|
||||
|
Reference in New Issue
Block a user