Skip to content

Commit

Permalink
Update and repair tests #377
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
  • Loading branch information
pombredanne committed Jun 8, 2018
1 parent 4f06e88 commit 29cd8bb
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion tests/cluecode/cluecode_assert_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def make_copyright_test_functions(test, test_data_dir=test_env.test_data_dir, re
name. Create only a single function for multiple tests (e.g. copyrights and
holders together).
"""
from scancode.plugin_copyrights_summary import summarize
from summarycode.plugin_copyright_summary import summarize

def closure_test_function(*args, **kwargs):
copyrights, authors, years, holders = cluecode.copyrights.detect(test_file)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@
"individual contributors"
],
"authors": [],
"start_line": 2,
"start_line": 3,
"end_line": 5
}
],
Expand Down Expand Up @@ -321,7 +321,7 @@
"authors": [
"Bela Ban"
],
"start_line": 8,
"start_line": 9,
"end_line": 11
}
],
Expand Down Expand Up @@ -364,7 +364,7 @@
"individual contributors"
],
"authors": [],
"start_line": 2,
"start_line": 3,
"end_line": 5
}
],
Expand Down Expand Up @@ -425,7 +425,7 @@
"authors": [
"Bela Ban"
],
"start_line": 2,
"start_line": 3,
"end_line": 4
}
],
Expand Down Expand Up @@ -454,7 +454,7 @@
"individual contributors"
],
"authors": [],
"start_line": 2,
"start_line": 3,
"end_line": 5
}
],
Expand Down Expand Up @@ -561,7 +561,7 @@
"Mark Adler"
],
"authors": [],
"start_line": 1,
"start_line": 2,
"end_line": 3
}
],
Expand Down Expand Up @@ -631,7 +631,7 @@
"Jean-loup Gailly."
],
"authors": [],
"start_line": 1,
"start_line": 2,
"end_line": 3
}
],
Expand Down Expand Up @@ -812,7 +812,7 @@
"Mark Adler"
],
"authors": [],
"start_line": 1,
"start_line": 2,
"end_line": 3
}
],
Expand Down Expand Up @@ -845,7 +845,7 @@
"Jean-loup Gailly and Mark Adler"
],
"authors": [],
"start_line": 1,
"start_line": 2,
"end_line": 3
}
],
Expand Down Expand Up @@ -882,7 +882,7 @@
"Jean-loup Gailly"
],
"authors": [],
"start_line": 1,
"start_line": 2,
"end_line": 3
}
],
Expand Down Expand Up @@ -940,7 +940,7 @@
"Henrik Ravn"
],
"authors": [],
"start_line": 13,
"start_line": 14,
"end_line": 16
}
],
Expand Down Expand Up @@ -1040,7 +1040,7 @@
"Jean-loup Gailly, Brian Raiter and Gilles Vollant."
],
"authors": [],
"start_line": 9,
"start_line": 10,
"end_line": 10
},
{
Expand Down Expand Up @@ -1120,7 +1120,7 @@
"Mark Adler"
],
"authors": [],
"start_line": 1,
"start_line": 2,
"end_line": 3
}
],
Expand Down Expand Up @@ -1153,7 +1153,7 @@
"Mark Adler"
],
"authors": [],
"start_line": 1,
"start_line": 2,
"end_line": 3
}
],
Expand Down Expand Up @@ -1278,7 +1278,7 @@
"Jean-loup Gailly."
],
"authors": [],
"start_line": 1,
"start_line": 2,
"end_line": 3
}
],
Expand Down Expand Up @@ -1311,7 +1311,7 @@
"Jean-loup Gailly."
],
"authors": [],
"start_line": 1,
"start_line": 2,
"end_line": 3
}
],
Expand Down
2 changes: 1 addition & 1 deletion tests/summarycode/test_plugin_copyright_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class TestCopyrightSummary(FileDrivenTesting):

test_data_dir = join(dirname(__file__), 'data')

def test_copyright_summary(self):
def test_copyright_summary_base(self):
test_dir = self.get_test_loc('plugin_copyright_summary/scan')
result_file = self.get_temp_file('json')
expected_file = self.get_test_loc('plugin_copyright_summary/summary.expected.json')
Expand Down

0 comments on commit 29cd8bb

Please sign in to comment.