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
78b1484a
Commit
78b1484a
authored
Feb 12, 2015
by
geekpradd
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/master'
parents
f919eeb9
b551a960
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
117 additions
and
57 deletions
+117
-57
c.json
repository/c.json
+10
-0
f.json
repository/f.json
+11
-0
q.json
repository/q.json
+10
-0
t.json
repository/t.json
+22
-0
test.py
tests/test.py
+1
-0
unittest_compat.py
tests/unittest_compat.py
+63
-57
No files found.
repository/c.json
View file @
78b1484a
...
...
@@ -342,6 +342,16 @@
}
]
},
{
"name"
:
"CFG Configuration Syntax Highlighting"
,
"details"
:
"https://github.com/aronj/CFGGameConfigurationSyntax"
,
"releases"
:
[
{
"sublime_text"
:
"*"
,
"tags"
:
true
}
]
},
{
"name"
:
"cFos ml syntax"
,
"details"
:
"https://github.com/ArmorDarks/cfos-ml-syntax"
,
...
...
repository/f.json
View file @
78b1484a
...
...
@@ -330,6 +330,17 @@
}
]
},
{
"name"
:
"FileCommands"
,
"details"
:
"https://github.com/tuvistavie/sublime-file-commands"
,
"labels"
:
[
"file navigation"
,
"utilities"
],
"releases"
:
[
{
"sublime_text"
:
"*"
,
"tags"
:
true
}
]
},
{
"name"
:
"FileDialog"
,
"details"
:
"https://github.com/shagabutdinov/sublime-file-dialog"
,
...
...
repository/q.json
View file @
78b1484a
...
...
@@ -11,6 +11,16 @@
}
]
},
{
"name"
:
"QMakeProject"
,
"details"
:
"https://github.com/nsubiron/sublime-qmakeproject-syntax"
,
"releases"
:
[
{
"sublime_text"
:
"*"
,
"tags"
:
true
}
]
},
{
"name"
:
"QML"
,
"details"
:
"https://github.com/skozlovf/Sublime-QML"
,
...
...
repository/t.json
View file @
78b1484a
...
...
@@ -463,6 +463,17 @@
}
]
},
{
"name"
:
"Theme - Carmesim"
,
"details"
:
"https://github.com/sergiokopplin/carmesim"
,
"labels"
:
[
"theme"
],
"releases"
:
[
{
"sublime_text"
:
"*"
,
"tags"
:
true
}
]
},
{
"name"
:
"Theme - Centurion"
,
"details"
:
"https://github.com/allanhortle/Centurion"
,
...
...
@@ -887,6 +898,17 @@
}
]
},
{
"name"
:
"Theme - Solarized Space"
,
"details"
:
"https://github.com/nsubiron/sublime-theme-solarized-space"
,
"labels"
:
[
"theme"
],
"releases"
:
[
{
"sublime_text"
:
"*"
,
"tags"
:
true
}
]
},
{
"name"
:
"Theme - Spacefunk"
,
"details"
:
"https://github.com/Twiebie/ST-Spacefunk"
,
...
...
tests/test.py
View file @
78b1484a
...
...
@@ -27,6 +27,7 @@ if sys.version_info >= (3,):
generator_method_type
=
'method'
str_cls
=
str
else
:
from
.
import
unittest_compat
from
urlparse
import
urljoin
from
urllib2
import
HTTPError
,
urlopen
generator_method_type
=
'instancemethod'
...
...
tests/unittest_compat.py
View file @
78b1484a
import
sys
import
re
import
unittest
def
assertIn
(
self
,
member
,
container
,
msg
=
None
):
"""Just like self.assertTrue(a in b), but with a nicer default message."""
if
member
not
in
container
:
if
not
msg
:
msg
=
'
%
r not found in
%
r'
%
(
member
,
container
)
self
.
fail
(
msg
)
unittest
.
TestCase
.
assertIn
=
assertIn
def
assertNotIn
(
self
,
member
,
container
,
msg
=
None
):
"""Just like self.assertTrue(a not in b), but with a nicer default message."""
if
member
in
container
:
if
not
msg
:
msg
=
'
%
s unexpectedly found in
%
s'
%
(
member
,
container
)
self
.
fail
(
msg
)
unittest
.
TestCase
.
assertNotIn
=
assertNotIn
def
assertGreater
(
self
,
a
,
b
,
msg
=
None
):
"""Just like self.assertTrue(a > b), but with a nicer default message."""
if
not
a
>
b
:
if
not
msg
:
msg
=
'
%
s not greater than
%
s'
%
(
a
,
b
)
self
.
fail
(
msg
)
unittest
.
TestCase
.
assertGreater
=
assertGreater
def
assertRegexpMatches
(
self
,
text
,
expected_regexp
,
msg
=
None
):
"""Fail the test unless the text matches the regular expression."""
if
isinstance
(
expected_regexp
,
basestring
):
expected_regexp
=
re
.
compile
(
expected_regexp
)
if
not
expected_regexp
.
search
(
text
):
msg
=
msg
or
"Regexp didn't match"
msg
=
'
%
s:
%
r not found in
%
r'
%
(
msg
,
expected_regexp
.
pattern
,
text
)
raise
self
.
failureException
(
msg
)
unittest
.
TestCase
.
assertRegex
=
assertRegexpMatches
def
assertNotRegexpMatches
(
self
,
text
,
unexpected_regexp
,
msg
=
None
):
"""Fail the test if the text matches the regular expression."""
if
isinstance
(
unexpected_regexp
,
basestring
):
unexpected_regexp
=
re
.
compile
(
unexpected_regexp
)
match
=
unexpected_regexp
.
search
(
text
)
if
match
:
msg
=
msg
or
"Regexp matched"
msg
=
'
%
s:
%
r matches
%
r in
%
r'
%
(
msg
,
text
[
match
.
start
():
match
.
end
()],
unexpected_regexp
.
pattern
,
text
)
raise
self
.
failureException
(
msg
)
unittest
.
TestCase
.
assertNotRegex
=
assertNotRegexpMatches
def
assertIsInstance
(
self
,
obj
,
cls
,
msg
=
None
):
"""Same as self.assertTrue(isinstance(obj, cls)), with a nicer
default message."""
if
not
isinstance
(
obj
,
cls
):
if
not
msg
:
msg
=
'
%
s is not an instance of
%
r'
%
(
obj
,
cls
)
self
.
fail
(
msg
)
unittest
.
TestCase
.
assertIsInstance
=
assertIsInstance
if
sys
.
version_info
<
(
2
,
7
):
def
assertIn
(
self
,
member
,
container
,
msg
=
None
):
"""Just like self.assertTrue(a in b), but with a nicer default message."""
if
member
not
in
container
:
if
not
msg
:
msg
=
'
%
r not found in
%
r'
%
(
member
,
container
)
self
.
fail
(
msg
)
unittest
.
TestCase
.
assertIn
=
assertIn
def
assertNotIn
(
self
,
member
,
container
,
msg
=
None
):
"""Just like self.assertTrue(a not in b), but with a nicer default message."""
if
member
in
container
:
if
not
msg
:
msg
=
'
%
s unexpectedly found in
%
s'
%
(
member
,
container
)
self
.
fail
(
msg
)
unittest
.
TestCase
.
assertNotIn
=
assertNotIn
def
assertGreater
(
self
,
a
,
b
,
msg
=
None
):
"""Just like self.assertTrue(a > b), but with a nicer default message."""
if
not
a
>
b
:
if
not
msg
:
msg
=
'
%
s not greater than
%
s'
%
(
a
,
b
)
self
.
fail
(
msg
)
unittest
.
TestCase
.
assertGreater
=
assertGreater
def
assertRegexpMatches
(
self
,
text
,
expected_regexp
,
msg
=
None
):
"""Fail the test unless the text matches the regular expression."""
if
isinstance
(
expected_regexp
,
basestring
):
expected_regexp
=
re
.
compile
(
expected_regexp
)
if
not
expected_regexp
.
search
(
text
):
msg
=
msg
or
"Regexp didn't match"
msg
=
'
%
s:
%
r not found in
%
r'
%
(
msg
,
expected_regexp
.
pattern
,
text
)
raise
self
.
failureException
(
msg
)
unittest
.
TestCase
.
assertRegex
=
assertRegexpMatches
def
assertNotRegexpMatches
(
self
,
text
,
unexpected_regexp
,
msg
=
None
):
"""Fail the test if the text matches the regular expression."""
if
isinstance
(
unexpected_regexp
,
basestring
):
unexpected_regexp
=
re
.
compile
(
unexpected_regexp
)
match
=
unexpected_regexp
.
search
(
text
)
if
match
:
msg
=
msg
or
"Regexp matched"
msg
=
'
%
s:
%
r matches
%
r in
%
r'
%
(
msg
,
text
[
match
.
start
():
match
.
end
()],
unexpected_regexp
.
pattern
,
text
)
raise
self
.
failureException
(
msg
)
unittest
.
TestCase
.
assertNotRegex
=
assertNotRegexpMatches
def
assertIsInstance
(
self
,
obj
,
cls
,
msg
=
None
):
"""Same as self.assertTrue(isinstance(obj, cls)), with a nicer
default message."""
if
not
isinstance
(
obj
,
cls
):
if
not
msg
:
msg
=
'
%
s is not an instance of
%
r'
%
(
obj
,
cls
)
self
.
fail
(
msg
)
unittest
.
TestCase
.
assertIsInstance
=
assertIsInstance
else
:
unittest
.
TestCase
.
assertRegex
=
unittest
.
TestCase
.
assertRegexpMatches
unittest
.
TestCase
.
assertNotRegex
=
unittest
.
TestCase
.
assertNotRegexpMatches
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