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
3b3016e6
Commit
3b3016e6
authored
Mar 06, 2015
by
FichteFoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run package name tests on implicitly named pckges
Also add some error strings.
parent
747e15fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
test.py
tests/test.py
+9
-6
No files found.
tests/test.py
View file @
3b3016e6
...
@@ -250,12 +250,15 @@ class TestContainer(object):
...
@@ -250,12 +250,15 @@ class TestContainer(object):
'The details url is badly formatted or '
'The details url is badly formatted or '
'invalid'
)
'invalid'
)
# Test for invalid characters (on file systems)
# Test for invalid characters (on file systems)
elif
k
==
'name'
:
name
=
get_package_name
(
data
)
# Invalid on Windows (and sometimes problematic on UNIX)
# Invalid on Windows (and sometimes problematic on UNIX)
self
.
assertNotRegex
(
v
,
r'[/?<>\\:*|"\x00-\x19]'
)
self
.
assertNotRegex
(
name
,
r'[/?<>\\:*|"\x00-\x19]'
,
# Invalid on OS X (or more precisely: hidden)
'Package names must be valid folder names on all '
self
.
assertFalse
(
v
.
startswith
(
'.'
))
'operating systems'
)
# Invalid on OS X (or more precisely: hidden)
self
.
assertFalse
(
name
.
startswith
(
'.'
),
'Package names may not start '
'with a dot'
)
if
'details'
not
in
data
:
if
'details'
not
in
data
:
for
key
in
(
'name'
,
'homepage'
,
'author'
,
'releases'
):
for
key
in
(
'name'
,
'homepage'
,
'author'
,
'releases'
):
...
...
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