Skip to content

Commit

Permalink
update test invalid yaml file
Browse files Browse the repository at this point in the history
  • Loading branch information
aabouzaid committed Sep 17, 2017
1 parent 127176a commit 0dc61e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions netbox/tests/test_netbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,9 +338,9 @@ def test_open_yaml_file_invalid(self, yaml_file):
"""
Test open invalid yaml file.
"""
with pytest.raises(SystemExit) as yaml_error:
config_output = netbox.open_yaml_file(yaml_file)
assert yaml_error
with pytest.raises(SystemExit) as invalid_yaml_syntax:
netbox.open_yaml_file(yaml_file)
assert invalid_yaml_syntax

@staticmethod
def teardown_function():
Expand Down

0 comments on commit 0dc61e7

Please sign in to comment.