mirror of
https://github.com/frappe/bench.git
synced 2025-01-09 08:30:39 +00:00
refactor: running utils tests before bench tests
This commit is contained in:
parent
8fb6796250
commit
df76415e6b
@ -48,17 +48,17 @@ matrix:
|
|||||||
- name: "Python 3.7 Tests"
|
- name: "Python 3.7 Tests"
|
||||||
python: 3.7
|
python: 3.7
|
||||||
env: TEST=bench
|
env: TEST=bench
|
||||||
script: python -m unittest -v bench.tests.test_init && python -m unittest -v bench.tests.test_utils
|
script: python -m unittest -v bench.tests.test_utils && python -m unittest -v bench.tests.test_init
|
||||||
|
|
||||||
- name: "Python 3.8 Tests"
|
- name: "Python 3.8 Tests"
|
||||||
python: 3.8
|
python: 3.8
|
||||||
env: TEST=bench
|
env: TEST=bench
|
||||||
script: python -m unittest -v bench.tests.test_init && python -m unittest -v bench.tests.test_utils
|
script: python -m unittest -v bench.tests.test_utils && python -m unittest -v bench.tests.test_init
|
||||||
|
|
||||||
- name: "Python 3.9 Tests"
|
- name: "Python 3.9 Tests"
|
||||||
python: 3.9
|
python: 3.9
|
||||||
env: TEST=bench
|
env: TEST=bench
|
||||||
script: python -m unittest -v bench.tests.test_init && python -m unittest -v bench.tests.test_utils
|
script: python -m unittest -v bench.tests.test_utils && python -m unittest -v bench.tests.test_init
|
||||||
|
|
||||||
- name: "Python 3.7 Easy Install"
|
- name: "Python 3.7 Easy Install"
|
||||||
python: 3.7
|
python: 3.7
|
||||||
|
@ -6,20 +6,20 @@ from bench.utils import exec_cmd
|
|||||||
|
|
||||||
|
|
||||||
class TestUtils(unittest.TestCase):
|
class TestUtils(unittest.TestCase):
|
||||||
def test_app_utils(self):
|
def test_app_utils(self):
|
||||||
git_url = "https://github.com/frappe/frappe"
|
git_url = "https://github.com/frappe/frappe"
|
||||||
branch = "develop"
|
branch = "develop"
|
||||||
app = App(name=git_url, branch=branch, bench=Bench("."))
|
app = App(name=git_url, branch=branch, bench=Bench("."))
|
||||||
self.assertTrue(
|
self.assertTrue(
|
||||||
all(
|
all(
|
||||||
[
|
[
|
||||||
app.name == git_url,
|
app.name == git_url,
|
||||||
app.branch == branch,
|
app.branch == branch,
|
||||||
app.tag == branch,
|
app.tag == branch,
|
||||||
app.is_url == True,
|
app.is_url == True,
|
||||||
app.on_disk == False,
|
app.on_disk == False,
|
||||||
app.org == "frappe",
|
app.org == "frappe",
|
||||||
app.url == git_url,
|
app.url == git_url,
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user