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
ddac4b1e
Commit
ddac4b1e
authored
Aug 12, 2013
by
FichteFoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests for the order of repositories in channel.json
parent
c58ed6c4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
channel.json
channel.json
+2
-2
test.py
tests/test.py
+6
-0
No files found.
channel.json
View file @
ddac4b1e
...
...
@@ -4,7 +4,6 @@
"./repository.json"
,
"http://release.latexing.com/packages.json"
,
"http://release.sublimegit.net/packages.json"
,
"https://sublime.wbond.net/packages_2.json"
,
"http://wuub.net/packages.json"
,
"https://bitbucket.org/artyom_smirnov/sublimetext2-packages/raw/master/packages.json"
,
"https://bitbucket.org/jjones028/p4sublime/raw/tip/packages.json"
,
...
...
@@ -151,6 +150,7 @@
"https://raw.github.com/yangsu/sublime-io/master/packages.json"
,
"https://raw.github.com/yangsu/sublime-octopress/master/packages.json"
,
"https://raw.github.com/yangsu/sublime-vhdl/master/packages.json"
,
"https://raw.github.com/zfkun/sublime-kissy-snippets/master/packages.json"
"https://raw.github.com/zfkun/sublime-kissy-snippets/master/packages.json"
,
"https://sublime.wbond.net/packages_2.json"
]
}
tests/test.py
View file @
ddac4b1e
...
...
@@ -80,6 +80,8 @@ def get_package_name(data):
################################################################################
class
ChannelTests
(
unittest
.
TestCase
):
maxDiff
=
None
with
_open
(
'channel.json'
)
as
f
:
j
=
json
.
load
(
f
)
...
...
@@ -93,6 +95,10 @@ class ChannelTests(unittest.TestCase):
for
repo
in
self
.
j
[
'repositories'
]:
self
.
assertIsInstance
(
repo
,
str
)
def
test_channel_repo_order
(
self
):
repos
=
self
.
j
[
'repositories'
]
self
.
assertEqual
(
repos
,
sorted
(
repos
,
key
=
str
.
lower
))
@
generator_class
class
RepositoryTests
(
unittest
.
TestCase
):
...
...
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