mirror of
https://github.com/frappe/bench.git
synced 2024-11-13 16:56:33 +00:00
test: updated tests to check for correct parsing of file uris
This commit is contained in:
parent
2fed369066
commit
3dcd28f569
@ -10,6 +10,7 @@ import git
|
||||
# imports - module imports
|
||||
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
|
||||
|
||||
|
||||
@ -34,9 +35,10 @@ class TestBenchInit(TestBenchBase):
|
||||
def test_utils(self):
|
||||
self.assertEqual(subprocess.call("bench"), 0)
|
||||
|
||||
|
||||
def test_init(self, bench_name="test-bench", **kwargs):
|
||||
self.init_bench(bench_name, **kwargs)
|
||||
app = App("file:///tmp/frappe")
|
||||
self.assertEqual(app.url, "/tmp/frappe")
|
||||
self.assert_folders(bench_name)
|
||||
self.assert_virtual_env(bench_name)
|
||||
self.assert_config(bench_name)
|
||||
|
Loading…
Reference in New Issue
Block a user