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
a3ee2635
Commit
a3ee2635
authored
Jan 06, 2014
by
FichteFoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: indent line number output +1 and PEP8
parent
88679bf3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
test.py
tests/test.py
+9
-7
No files found.
tests/test.py
View file @
a3ee2635
...
...
@@ -169,7 +169,7 @@ class TestContainer(object):
def
_test_repository_indents
(
self
,
include
,
contents
):
for
i
,
line
in
enumerate
(
contents
.
splitlines
()):
self
.
assertRegex
(
line
,
r"^\t*\S"
,
"Indent must be tabs in line
%
d"
%
i
)
"Indent must be tabs in line
%
d"
%
(
i
+
1
)
)
def
_test_package
(
self
,
include
,
data
):
for
k
,
v
in
data
.
items
():
...
...
@@ -307,7 +307,7 @@ class ChannelTests(TestContainer, unittest.TestCase):
try
:
data
=
json
.
loads
(
source
)
except
Exception
as
e
:
yield
cls
.
_fail
(
"Could not parse
%
s"
%
repository
,
e
)
yield
cls
.
_fail
(
"Could not parse
%
s"
%
repository
,
e
)
continue
# Check for the schema version first (and generator failures it's
...
...
@@ -339,6 +339,8 @@ class ChannelTests(TestContainer, unittest.TestCase):
(
"
%
s (
%
s)"
%
(
package_name
,
repository
),
release
,
False
))
# TODO: test includes
@
generator_class
class
RepositoryTests
(
TestContainer
,
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