Skip to content

Commit

Permalink
Fix lint in unit tests re: py3-first and py2 compat
Browse files Browse the repository at this point in the history
Change-Id: I22d359df04f613c9a3306b8eae5ab9298acc9120
  • Loading branch information
Ryan Beisner committed Nov 2, 2018
1 parent 455d0ed commit 2a10af3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .stestr.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[DEFAULT]
test_path=./unit_tests
top_dir=./
1 change: 1 addition & 0 deletions unit_tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ def _add_path(path):
if path not in sys.path:
sys.path.insert(1, path)


_add_path(_actions)
_add_path(_hooks)
2 changes: 1 addition & 1 deletion unit_tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def patch_open():
Yields the mock for "open" and "file", respectively.'''
mock_open = MagicMock(spec=open)
mock_file = MagicMock(spec=file)
mock_file = MagicMock(spec=__file__)

@contextmanager
def stub_open(*args, **kwargs):
Expand Down

0 comments on commit 2a10af3

Please sign in to comment.