Skip to content

Commit

Permalink
unlink tmp files
Browse files Browse the repository at this point in the history
  • Loading branch information
aabouzaid committed Sep 17, 2017
1 parent 0dc61e7 commit 8465ed0
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions netbox/tests/test_netbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,10 +316,6 @@ def test_open_yaml_file_exists(self, yaml_file):
assert config_output["netbox"]
assert config_output["netbox"]["main"]["api_url"]

@staticmethod
def teardown_function():
os.unlink(netbox_config_file.name)

@pytest.mark.parametrize("yaml_file", [
"nonexists.yml"
])
Expand All @@ -342,8 +338,9 @@ def test_open_yaml_file_invalid(self, yaml_file):
netbox.open_yaml_file(yaml_file)
assert invalid_yaml_syntax

@staticmethod
def teardown_function():
@classmethod
def teardown_class(cls):
os.unlink(netbox_config_file.name)
os.unlink(netbox_config_file_invalid.name)


Expand Down

0 comments on commit 8465ed0

Please sign in to comment.