Skip to content

Commit

Permalink
Renaming function
Browse files Browse the repository at this point in the history
  • Loading branch information
rv-kip committed Dec 1, 2016
1 parent 68fc888 commit c7a195f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nose_annotator/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def stopTest(self, test):
test_class, test_name = self.get_test_class_name(test)
for annotation in self.annotations:
for key, value in annotation.iteritems():
mapping_file = self.test_mapping_file_name(key)
mapping_file = self.get_test_mapping_file_name(key)
with io.open(mapping_file, 'ab') as f:
f.write('%s:%s,%s' % (test_class, test_name, value) + "\n")

Expand All @@ -58,7 +58,7 @@ def get_test_class_name(self, test):
test_name = test.id().split('.')[-1]
return test_class, test_name

def test_mapping_file_name(self, key_name):
def get_test_mapping_file_name(self, key_name):
filename = key_name + '_mapping.csv'
if os.environ.get(key_name.upper(), None):
filename = os.environ.get(key_name.upper())
Expand Down

0 comments on commit c7a195f

Please sign in to comment.