Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
slapos.core
Commits
3483561d
Commit
3483561d
authored
Mar 19, 2019
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: rename test_slapproxy so that pytest can find it
parent
ae759e3a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
slapos/tests/test_cli.py
slapos/tests/test_cli.py
+2
-1
slapos/tests/test_slapproxy.py
slapos/tests/test_slapproxy.py
+3
-3
No files found.
slapos/tests/test_cli.py
View file @
3483561d
...
...
@@ -98,7 +98,8 @@ class TestCliProxyShow(CliMixin):
# load database
schema
=
bytes2str
(
pkg_resources
.
resource_string
(
'slapos.tests.test_slapproxy'
,
'database_dump_version_current.sql'
))
'slapos.tests'
,
os
.
path
.
join
(
'test_slapproxy'
,
'database_dump_version_current.sql'
)))
db
=
sqlite_connect
(
self
.
db_file
.
name
)
db
.
cursor
().
executescript
(
schema
)
db
.
commit
()
...
...
slapos/tests/test_slapproxy
/__init__
.py
→
slapos/tests/test_slapproxy.py
View file @
3483561d
...
...
@@ -1161,7 +1161,7 @@ database_uri = %(tempdir)s/lib/external_proxy.db
behaviours.
"""
configuration
=
bytes2str
(
pkg_resources
.
resource_string
(
'slapos.tests
.test_slapproxy'
,
'slapos_multimaster.cfg.in'
'slapos.tests
'
,
os
.
path
.
join
(
'test_slapproxy'
,
'slapos_multimaster.cfg.in'
)
))
%
{
'tempdir'
:
self
.
_tempdir
,
'proxyaddr'
:
self
.
proxyaddr
,
'external_proxy_host'
:
self
.
external_proxy_host
,
...
...
@@ -1379,8 +1379,8 @@ class TestMigrateVersion10To12(TestInformation, TestRequest, TestSlaveRequest, T
def
setUp
(
self
):
super
(
TestMigrateVersion10To12
,
self
).
setUp
()
schema
=
bytes2str
(
pkg_resources
.
resource_string
(
'slapos.tests
.test_slapproxy
'
,
'database_dump_version_10.sql'
'slapos.tests'
,
os
.
path
.
join
(
'test_slapproxy'
,
'database_dump_version_10.sql'
)
))
%
dict
(
version
=
'12'
)
self
.
db
=
sqlite_connect
(
self
.
proxy_db
)
self
.
db
.
cursor
().
executescript
(
schema
)
...
...
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