diff --git a/bench/app.py b/bench/app.py index e6180c29..f2117385 100755 --- a/bench/app.py +++ b/bench/app.py @@ -143,7 +143,7 @@ class AppMeta: @property def url(self): - if self.is_url: + if self.is_url or self.from_apps or self.on_disk: return self.name if self.use_ssh: diff --git a/bench/tests/test_init.py b/bench/tests/test_init.py index 0e2f1964..e9e9b8b4 100755 --- a/bench/tests/test_init.py +++ b/bench/tests/test_init.py @@ -39,8 +39,10 @@ class TestBenchInit(TestBenchBase): def test_init(self, bench_name="test-bench", **kwargs): self.init_bench(bench_name, **kwargs) app = App("file:///tmp/frappe") - self.assertEqual(app.mount_path, "/tmp/frappe") - self.assertEqual(app.url, "https://github.com/frappe/frappe.git") + self.assertTupleEqual( + (app.mount_path, app.url, app.repo, app.org), + ("/tmp/frappe", "file:///tmp/frappe", "frappe", "frappe"), + ) self.assert_folders(bench_name) self.assert_virtual_env(bench_name) self.assert_config(bench_name)