Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sakia
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonas Smedegaard
sakia
Commits
af342e1f
Commit
af342e1f
authored
8 years ago
by
inso
Browse files
Options
Downloads
Patches
Plain Diff
Fix tests
parent
356dbe1a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
release.sh
+1
-1
1 addition, 1 deletion
release.sh
src/sakia/tests/unit/core/graph/test_explorer_graph.py
+3
-0
3 additions, 0 deletions
src/sakia/tests/unit/core/graph/test_explorer_graph.py
with
4 additions
and
1 deletion
release.sh
+
1
−
1
View file @
af342e1f
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
current
=
`
grep
-P
"__version_info__ =
\(\'\d
+
\'
,
\'\d
+
\'
,
\'\d
+(
\w
*)
\'\)
"
src/sakia/__init__.py |
grep
-oP
"
\'\d
+
\'
,
\'\d
+
\'
,
\'\d
+(
\w
*)
\'
"
`
current
=
`
grep
-P
"__version_info__ =
\(\'\d
+
\'
,
\'\d
+
\'
,
\'\d
+(
\w
*)
\'\)
"
src/sakia/__init__.py |
grep
-oP
"
\'\d
+
\'
,
\'\d
+
\'
,
\'\d
+(
\w
*)
\'
"
`
echo
"Current version:
$current
"
echo
"Current version:
$current
"
if
[[
$1
=
~ ^[0-9]+.[0-9]+.[0-9]+[0-9a-z]
+
$
]]
;
then
if
[[
$1
=
~ ^[0-9]+.[0-9]+.[0-9]+[0-9a-z]
*
$
]]
;
then
IFS
=
'.'
read
-r
-a
array
<<<
"
$1
"
IFS
=
'.'
read
-r
-a
array
<<<
"
$1
"
sed
-i
"s/__version_info__
\
= (
$current
)/__version_info__ = ('
${
array
[0]
}
', '
${
array
[1]
}
', '
${
array
[2]
}
')/g"
src/sakia/__init__.py
sed
-i
"s/__version_info__
\
= (
$current
)/__version_info__ = ('
${
array
[0]
}
', '
${
array
[1]
}
', '
${
array
[2]
}
')/g"
src/sakia/__init__.py
sed
-i
"s/#define MyAppVerStr .*/#define MyAppVerStr
\"
$1
\"
/g"
ci/appveyor/sakia.iss
sed
-i
"s/#define MyAppVerStr .*/#define MyAppVerStr
\"
$1
\"
/g"
ci/appveyor/sakia.iss
...
...
This diff is collapsed.
Click to expand it.
src/sakia/tests/unit/core/graph/test_explorer_graph.py
+
3
−
0
View file @
af342e1f
...
@@ -126,6 +126,7 @@ class TestExplorerGraph(unittest.TestCase, QuamashTest):
...
@@ -126,6 +126,7 @@ class TestExplorerGraph(unittest.TestCase, QuamashTest):
def
test_explore_full_from_center
(
self
,
app
,
community
):
def
test_explore_full_from_center
(
self
,
app
,
community
):
community
.
parameters
=
CoroutineMock
(
return_value
=
{
'
sigValidity
'
:
1000
})
community
.
parameters
=
CoroutineMock
(
return_value
=
{
'
sigValidity
'
:
1000
})
community
.
network
.
confirmations
=
Mock
(
side_effect
=
lambda
n
:
4
if
996
else
None
)
community
.
network
.
confirmations
=
Mock
(
side_effect
=
lambda
n
:
4
if
996
else
None
)
community
.
nb_members
=
CoroutineMock
(
return_value
=
3
)
app
.
preferences
=
{
'
expert_mode
'
:
True
}
app
.
preferences
=
{
'
expert_mode
'
:
True
}
explorer_graph
=
ExplorerGraph
(
app
,
community
)
explorer_graph
=
ExplorerGraph
(
app
,
community
)
...
@@ -143,6 +144,7 @@ class TestExplorerGraph(unittest.TestCase, QuamashTest):
...
@@ -143,6 +144,7 @@ class TestExplorerGraph(unittest.TestCase, QuamashTest):
def
test_explore_full_from_extremity
(
self
,
app
,
community
):
def
test_explore_full_from_extremity
(
self
,
app
,
community
):
community
.
parameters
=
CoroutineMock
(
return_value
=
{
'
sigValidity
'
:
1000
})
community
.
parameters
=
CoroutineMock
(
return_value
=
{
'
sigValidity
'
:
1000
})
community
.
network
.
confirmations
=
Mock
(
side_effect
=
lambda
n
:
4
if
996
else
None
)
community
.
network
.
confirmations
=
Mock
(
side_effect
=
lambda
n
:
4
if
996
else
None
)
community
.
nb_members
=
CoroutineMock
(
return_value
=
3
)
app
.
preferences
=
{
'
expert_mode
'
:
True
}
app
.
preferences
=
{
'
expert_mode
'
:
True
}
explorer_graph
=
ExplorerGraph
(
app
,
community
)
explorer_graph
=
ExplorerGraph
(
app
,
community
)
...
@@ -160,6 +162,7 @@ class TestExplorerGraph(unittest.TestCase, QuamashTest):
...
@@ -160,6 +162,7 @@ class TestExplorerGraph(unittest.TestCase, QuamashTest):
def
test_explore_partial
(
self
,
app
,
community
):
def
test_explore_partial
(
self
,
app
,
community
):
community
.
parameters
=
CoroutineMock
(
return_value
=
{
'
sigValidity
'
:
1000
})
community
.
parameters
=
CoroutineMock
(
return_value
=
{
'
sigValidity
'
:
1000
})
community
.
network
.
confirmations
=
Mock
(
side_effect
=
lambda
n
:
4
if
996
else
None
)
community
.
network
.
confirmations
=
Mock
(
side_effect
=
lambda
n
:
4
if
996
else
None
)
community
.
nb_members
=
CoroutineMock
(
return_value
=
3
)
app
.
preferences
=
{
'
expert_mode
'
:
True
}
app
.
preferences
=
{
'
expert_mode
'
:
True
}
explorer_graph
=
ExplorerGraph
(
app
,
community
)
explorer_graph
=
ExplorerGraph
(
app
,
community
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment