Skip to content

Commit

Permalink
Merge pull request #472 from ESMValGroup/version2_ncl_check
Browse files Browse the repository at this point in the history
Remove working dir dependency of NCL check test
  • Loading branch information
mattiarighi authored Jun 22, 2018
2 parents ba1631a + c2f56ab commit 730a66b
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 730a66b

Please sign in to comment.