Skip to content

Commit

Permalink
registered merge tests in .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Simaris committed Dec 29, 2020
1 parent dd21cbe commit de8b125
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ script:
- coverage run -a --source=quit tests/test_helpers.py
- coverage run -a --source=quit tests/test_namespace.py
- coverage run -a --source=quit tests/test_provenance.py
- coverage run -a --source=quit tests/merges/test_merge_methods.py

before_deploy:
- mkdir dist
Expand Down
4 changes: 2 additions & 2 deletions tests/merges/test_merge_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ def testThreeWayMerge(self):
testPath = os.path.dirname(os.path.abspath(__file__))
for d in listdir(testPath):
if d[0:4] == "Test" and isdir(join(testPath, d)):
self._merge_test(d, "three-way")
self._merge_test(join(testPath, d), "three-way")

def testContextMerge(self):
"""Test merging two commits. Method: Context"""
testPath = os.path.dirname(os.path.abspath(__file__))
exceptions = ["TestHouseMerge"] # TestHouse actually raises a merge conflict exception
for d in listdir(testPath):
if d[0:4] == "Test" and isdir(join(testPath, d)) and d not in exceptions:
self._merge_test(d, "context")
self._merge_test(join(testPath, d), "context")

def _merge_test(self, dirPath, method):
# Prepate a git Repository
Expand Down

0 comments on commit de8b125

Please sign in to comment.