Skip to content

Commit

Permalink
refactor: running utils tests before bench tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Aradhya-Tripathi committed Feb 24, 2022
1 parent 8fb6796 commit df76415
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,17 @@ matrix:
- name: "Python 3.7 Tests"
python: 3.7
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"
python: 3.8
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"
python: 3.9
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"
python: 3.7
Expand Down
34 changes: 17 additions & 17 deletions bench/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@


class TestUtils(unittest.TestCase):
def test_app_utils(self):
git_url = "https://github.com/frappe/frappe"
branch = "develop"
app = App(name=git_url, branch=branch, bench=Bench("."))
self.assertTrue(
all(
[
app.name == git_url,
app.branch == branch,
app.tag == branch,
app.is_url == True,
app.on_disk == False,
app.org == "frappe",
app.url == git_url,
]
)
)
def test_app_utils(self):
git_url = "https://github.com/frappe/frappe"
branch = "develop"
app = App(name=git_url, branch=branch, bench=Bench("."))
self.assertTrue(
all(
[
app.name == git_url,
app.branch == branch,
app.tag == branch,
app.is_url == True,
app.on_disk == False,
app.org == "frappe",
app.url == git_url,
]
)
)

0 comments on commit df76415

Please sign in to comment.