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
8d30aee9
Commit
8d30aee9
authored
Feb 06, 2013
by
krockode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added tests for the ordering of repos, package_names and renamed_packages
parent
32ff9cb9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
repositories.json
repositories.json
+2
-2
test.py
tests/test.py
+16
-0
No files found.
repositories.json
View file @
8d30aee9
...
...
@@ -286,7 +286,6 @@
"https://github.com/Foxboron/SublimeClojure"
,
"https://github.com/FPtje/Sublime-GLua-Highlight"
,
"https://github.com/francodacosta/composer-sublime"
,
"https://raw.github.com/francodacosta/sublime-php-getters-setters/master/packages.json"
,
"https://github.com/frankban/UbuntuPaste"
,
"https://github.com/fredpointzero/UnityBuild"
,
"https://github.com/friskfly/Youdao-Translate-For-Sublime"
,
...
...
@@ -838,6 +837,7 @@
"https://raw.github.com/farcaller/DashDoc/master/packages.json"
,
"https://raw.github.com/FichteFoll/sublime_packages/master/package_control.json"
,
"https://raw.github.com/filcab/SublimeLLDB/master/packages.json"
,
"https://raw.github.com/francodacosta/sublime-php-getters-setters/master/packages.json"
,
"https://raw.github.com/freewizard/sublime_packages/master/package_control.json"
,
"https://raw.github.com/gcollazo/sublime_packages/master/packages.json"
,
"https://raw.github.com/Harrison-M/indent.txt-sublime/master/packages.json"
,
...
...
@@ -859,8 +859,8 @@
"https://raw.github.com/kylederkacz/lettuce-farmer/master/packages.json"
,
"https://raw.github.com/Learning/sublime_packages/master/packages.json"
,
"https://raw.github.com/leporo/SublimeYammy/master/packages.json"
,
"https://raw.github.com/LONGMANi/sublimetext-stringutilities/master/packages.json"
,
"https://raw.github.com/LONGMANi/sublimetext-autobackups/master/packages.json"
,
"https://raw.github.com/LONGMANi/sublimetext-stringutilities/master/packages.json"
,
"https://raw.github.com/lucifr/CNPunctuationAutopair/master/packages.json"
,
"https://raw.github.com/lyapun/sublime-text-2-python-test-runner/master/packages.json"
,
"https://raw.github.com/mablo/sublime-text-2-meld-diff/master/packages.json"
,
...
...
tests/test.py
View file @
8d30aee9
import
json
from
collections
import
OrderedDict
def
test_json_is_valid
():
fp
=
open
(
"repositories.json"
)
json
.
load
(
fp
)
def
test_repositories_in_order
():
j
=
json
.
load
(
open
(
"repositories.json"
))
repos
=
j
[
'repositories'
][
3
:]
assert
repos
==
sorted
(
repos
,
key
=
unicode
.
lower
)
def
test_package_names_in_order
():
j
=
json
.
load
(
open
(
"repositories.json"
),
object_pairs_hook
=
OrderedDict
)
packages
=
j
[
'package_name_map'
]
.
keys
()
assert
packages
==
sorted
(
packages
,
key
=
unicode
.
lower
)
def
test_renamed_packages_in_order
():
j
=
json
.
load
(
open
(
"repositories.json"
),
object_pairs_hook
=
OrderedDict
)
packages
=
j
[
'renamed_packages'
]
.
keys
()
assert
packages
==
sorted
(
packages
,
key
=
unicode
.
lower
)
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