mirror of
https://github.com/frappe/bench.git
synced 2024-11-12 08:16:28 +00:00
test: updated tests for App init
This commit is contained in:
parent
949e51a943
commit
66157f6c92
@ -73,7 +73,7 @@ class AppMeta:
|
||||
|
||||
def setup_details(self):
|
||||
# fetch meta from installed apps
|
||||
if hasattr(self, "bench") and os.path.exists(
|
||||
if self.bench and os.path.exists(
|
||||
os.path.join(self.bench.name, "apps", self.name)
|
||||
):
|
||||
self.mount_path = os.path.join(self.bench.name, "apps", self.name)
|
||||
|
@ -12,6 +12,7 @@ from bench.utils import exec_cmd
|
||||
from bench.release import get_bumped_version
|
||||
from bench.app import App
|
||||
from bench.tests.test_base import FRAPPE_BRANCH, TestBenchBase
|
||||
from bench.bench import Bench
|
||||
|
||||
|
||||
# changed from frappe_theme because it wasn't maintained and incompatible,
|
||||
@ -43,7 +44,9 @@ class TestBenchInit(TestBenchBase):
|
||||
self.assert_folders(bench_name)
|
||||
self.assert_virtual_env(bench_name)
|
||||
self.assert_config(bench_name)
|
||||
|
||||
test_bench = Bench(bench_name)
|
||||
app = App("frappe", bench=test_bench)
|
||||
self.assertEqual(app.from_apps, True)
|
||||
|
||||
def basic(self):
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user