Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
package_control_channel
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Gaurav Kukreja
package_control_channel
Commits
bb8c4b92
Commit
bb8c4b92
authored
Aug 05, 2013
by
FichteFoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests for redundant name mappings
parent
02c8ede3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
repositories.json
repositories.json
+0
-2
test.py
tests/test.py
+11
-1
No files found.
repositories.json
View file @
bb8c4b92
...
...
@@ -1360,7 +1360,6 @@
"browsersupport"
:
"Browser Support"
,
"bs3-sublime-plugin"
:
"Bootstrap 3 Snippets"
,
"Bubububububad"
:
"Bubububububad and Boneyfied Color Schemes"
,
"BuildParts"
:
"BuildParts"
,
"BuildView"
:
"Shows build output in a view"
,
"cakephp-tmbundle"
:
"CakePHP (tmbundle)"
,
"Cappuccino-Sublime"
:
"Cappuccino"
,
...
...
@@ -2224,7 +2223,6 @@
"Tritium.tmbundle"
:
"Tritium"
,
"tubaina-afc"
:
"Tubaina (afc)"
,
"ublime"
:
"Ublime Color Schemes"
,
"Unity3D"
:
"Unity3D"
,
"Unity3d-LeanTween-Snippets"
:
"Unity3d LeanTween Snippets"
,
"Unity3D-Shader"
:
"Unity3D Shader Highlighter and Snippets"
,
"Unity3DScriptReference"
:
"Unity3D Script Reference Search"
,
...
...
tests/test.py
View file @
bb8c4b92
...
...
@@ -22,7 +22,7 @@ repo_file = "repositories.json"
# json.load(fp)
class
Test
Order
(
unittest
.
TestCase
):
class
Test
Contents
(
unittest
.
TestCase
):
# Do not limit the list comparison to 600 chars (for more detailed debugging)
maxDiff
=
None
...
...
@@ -44,6 +44,16 @@ class TestOrder(unittest.TestCase):
ren_packages
=
list
(
self
.
j
[
'renamed_packages'
]
.
keys
())
self
.
assertEqual
(
ren_packages
,
sorted
(
ren_packages
,
key
=
str
.
lower
))
def
test_name_map_redundancy
(
self
):
for
k
,
v
in
self
.
j
[
'package_name_map'
]
.
items
():
if
k
==
v
:
raise
ValueError
(
"Package '
%
s' maps to itself"
%
k
)
def
test_rename_map_redundancy
(
self
):
for
k
,
v
in
self
.
j
[
'renamed_packages'
]
.
items
():
if
k
==
v
:
raise
ValueError
(
"Package '
%
s' renames to itself"
%
k
)
if
__name__
==
'__main__'
:
# Manually go up one directory if this file is run explicitly
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment