Skip to content

Commit

Permalink
cleanup: remove unused inline main example code - use tests for tests…
Browse files Browse the repository at this point in the history
… only
  • Loading branch information
grimen committed Mar 10, 2019
1 parent e72e8b2 commit 1533db7
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 52 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ python:
install: make install-ci
script: make test-ci
after_success:
- make coverage-ci
- make coverage-ci-codecov
notifications:
email: false
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ coverage-codecov: coverage
bash <(curl -s https://codecov.io/bash)

.PHONY: coverage-ci
coverage-cis:
coverage-ci:
coverage run ./$(NAME)/tests

.PHONY: coverage-ci-codecov
Expand Down
26 changes: 0 additions & 26 deletions rootpath/append.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,29 +61,3 @@ def append(current_path = None, pattern = None):
sys.path.append(project_root_path)

return True, project_root_path



# =========================================
# MAIN
# --------------------------------------

if __name__ == '__main__':

with banner(__file__):

search_path = None
result = append(search_path)

print('append({0})\n\n => {1}\n'.format(search_path, result))

search_path = '.'
result = append(search_path)

print('append("{0}")\n\n => {1}\n'.format(search_path, result))

search_path = path.abspath(path.normpath(sys.argv.pop() or path.dirname(__file__)))
result = append(search_path)

print('append("{0}")\n\n => {1}\n'.format(search_path, result))

24 changes: 0 additions & 24 deletions rootpath/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,27 +97,3 @@ def find_root_path(current_path, pattern = None):
root_path = find_root_path(current_path, pattern)

return root_path


# =========================================
# MAIN
# --------------------------------------

if __name__ == '__main__':

with banner(__file__):

search_path = None
result = detect(search_path)

print('detect({0})\n\n => {1}\n'.format(search_path, detect(search_path)))

search_path = '.'
result = detect(search_path)

print('detect("{0}")\n\n => {1}\n'.format(search_path, detect(search_path)))

search_path = path.abspath(path.normpath(sys.argv.pop() or path.dirname(__file__)))
result = detect(search_path)

print('detect("{0}")\n\n => {1}\n'.format(search_path, detect(search_path)))

0 comments on commit 1533db7

Please sign in to comment.