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
3a148461
Commit
3a148461
authored
Aug 21, 2014
by
FichteFoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test for trailing `.git` in details urls
Also fix a package with that as well. Inspired by #3538.
parent
037d9078
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
r.json
repository/r.json
+1
-1
test.py
tests/test.py
+8
-2
No files found.
repository/r.json
View file @
3a148461
...
@@ -290,7 +290,7 @@
...
@@ -290,7 +290,7 @@
},
},
{
{
"name"
:
"ReactJS Snippets"
,
"name"
:
"ReactJS Snippets"
,
"details"
:
"https://github.com/saada/reactjs-snippets
.git
"
,
"details"
:
"https://github.com/saada/reactjs-snippets"
,
"releases"
:
[
"releases"
:
[
{
{
"sublime_text"
:
"*"
,
"sublime_text"
:
"*"
,
...
...
tests/test.py
View file @
3a148461
...
@@ -143,8 +143,14 @@ class TestContainer(object):
...
@@ -143,8 +143,14 @@ class TestContainer(object):
rel_d_reg
=
' '
.
join
(
map
(
str
.
strip
,
rel_d_reg
.
split
()))
rel_d_reg
=
' '
.
join
(
map
(
str
.
strip
,
rel_d_reg
.
split
()))
release_details_regex
=
re
.
compile
(
rel_d_reg
,
re
.
X
)
release_details_regex
=
re
.
compile
(
rel_d_reg
,
re
.
X
)
# Use the same as for releases, for now
pac_d_reg
=
r'''^ (https:// github\.com/ [^/]+/ [^/]+ (/tree/ .+ (?<!/)
package_details_regex
=
release_details_regex
|/)? (?<!\.git)
|https:// bitbucket\.org/ [^/]+/ [^/]+ (/src/ .+ (?<!/)
|\#tags
|/)?
) $'''
pac_d_reg
=
' '
.
join
(
map
(
str
.
strip
,
pac_d_reg
.
split
()))
package_details_regex
=
re
.
compile
(
pac_d_reg
,
re
.
X
)
def
_test_repository_keys
(
self
,
include
,
data
):
def
_test_repository_keys
(
self
,
include
,
data
):
self
.
assertTrue
(
2
<=
len
(
data
)
<=
3
,
"Unexpected number of keys"
)
self
.
assertTrue
(
2
<=
len
(
data
)
<=
3
,
"Unexpected number of keys"
)
...
...
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