Skip to content

Commit 523bbe9

Browse files
committed
Rename tallies test files
* Remove all references to summarization in tallies tests Reference: #2842 Signed-off-by: Jono Yang <jyang@nexb.com>
1 parent 7ce3734 commit 523bbe9

63 files changed

Lines changed: 30 additions & 33 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/summarycode/tallies.py

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,14 @@
77
# See https://aboutcode.org for more information about nexB OSS projects.
88
#
99

10-
import attr
10+
from collections import Counter
1111

12-
from plugincode.post_scan import PostScanPlugin
13-
from plugincode.post_scan import post_scan_impl
14-
from commoncode.cliutils import PluggableCommandLineOption
15-
from commoncode.cliutils import POST_SCAN_GROUP
16-
from summarycode.utils import sorted_counter
17-
from summarycode.utils import get_resource_tallies
18-
from summarycode.utils import set_resource_tallies
12+
import attr
13+
from commoncode.cliutils import POST_SCAN_GROUP, PluggableCommandLineOption
14+
from plugincode.post_scan import PostScanPlugin, post_scan_impl
1915

16+
from summarycode.utils import (get_resource_tallies, set_resource_tallies,
17+
sorted_counter)
2018

2119
# Tracing flags
2220
TRACE = False
@@ -113,9 +111,9 @@ def compute_codebase_tallies(codebase, keep_details, **kwargs):
113111
If `keep_details` is True, also keep file and directory details in the
114112
`tallies` file attribute for every file and directory.
115113
"""
116-
from summarycode.copyright_tallies import author_tallies
117-
from summarycode.copyright_tallies import copyright_tallies
118-
from summarycode.copyright_tallies import holder_tallies
114+
from summarycode.copyright_tallies import (author_tallies,
115+
copyright_tallies,
116+
holder_tallies)
119117

120118
attrib_summarizers = [
121119
('license_expressions', license_tallies),
@@ -254,8 +252,7 @@ def tally_values(values, attribute):
254252
"""
255253
if attribute not in TALLYABLE_ATTRS:
256254
return {}
257-
from summarycode.copyright_tallies import tally_copyrights
258-
from summarycode.copyright_tallies import tally_persons
255+
from summarycode.copyright_tallies import tally_copyrights, tally_persons
259256

260257
value_talliers_by_attr = dict(
261258
license_expressions=tally_licenses,

tests/summarycode/data/tallies/copyright_summary/scan/JGroups/src/FixedMembershipToken.java renamed to tests/summarycode/data/tallies/copyright_tallies/scan/JGroups/src/FixedMembershipToken.java

File renamed without changes.

tests/summarycode/data/tallies/copyright_summary/scan/JGroups/src/GuardedBy.java renamed to tests/summarycode/data/tallies/copyright_tallies/scan/JGroups/src/GuardedBy.java

File renamed without changes.

tests/summarycode/data/tallies/copyright_summary/scan/JGroups/src/ImmutableReference.java renamed to tests/summarycode/data/tallies/copyright_tallies/scan/JGroups/src/ImmutableReference.java

File renamed without changes.

tests/summarycode/data/tallies/copyright_summary/scan/JGroups/src/RATE_LIMITER.java renamed to tests/summarycode/data/tallies/copyright_tallies/scan/JGroups/src/RATE_LIMITER.java

File renamed without changes.

tests/summarycode/data/tallies/copyright_summary/scan/JGroups/src/RouterStub.java renamed to tests/summarycode/data/tallies/copyright_tallies/scan/JGroups/src/RouterStub.java

File renamed without changes.

tests/summarycode/data/tallies/copyright_summary/scan/JGroups/src/RouterStubManager.java renamed to tests/summarycode/data/tallies/copyright_tallies/scan/JGroups/src/RouterStubManager.java

File renamed without changes.

tests/summarycode/data/tallies/copyright_summary/scan/JGroups/src/S3_PING.java renamed to tests/summarycode/data/tallies/copyright_tallies/scan/JGroups/src/S3_PING.java

File renamed without changes.

tests/summarycode/data/tallies/copyright_summary/scan/README renamed to tests/summarycode/data/tallies/copyright_tallies/scan/README

File renamed without changes.

tests/summarycode/data/tallies/copyright_summary/scan/arch/adler32.c renamed to tests/summarycode/data/tallies/copyright_tallies/scan/arch/adler32.c

File renamed without changes.

0 commit comments

Comments
 (0)