mirror of
https://github.com/frappe/bench.git
synced 2025-01-22 22:58:31 +00:00
Merge pull request #1321 from Aradhya-Tripathi/fixes
fix: using local clones if path is passed in get-app
This commit is contained in:
commit
8922e8d35f
@ -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:
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user