Skip to content

Commit

Permalink
Remove working dir dependency of NCL check test
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier Vegas committed Jun 21, 2018
1 parent 32eb528 commit c2f56ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/unit/test_lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ def test_nclcodestyle():
', '.join(check_paths)))

style = nclcodestyle.StyleGuide()

package_root = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))
check_paths = [os.path.join(package_root, path) for path in check_paths]
success = style.check_files(check_paths).total_errors == 0

if not success:
Expand Down

0 comments on commit c2f56ab

Please sign in to comment.