Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
zesje
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
157
Issues
157
List
Boards
Labels
Service Desk
Milestones
Merge Requests
14
Merge Requests
14
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zesje
zesje
Commits
d39f5008
Commit
d39f5008
authored
Apr 23, 2020
by
Adrià Labay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed test database name
parent
9b7a00c7
Pipeline
#33403
passed with stages
in 8 minutes and 42 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
.gitlab-ci.yml
.gitlab-ci.yml
+1
-2
myinit_test.sql
myinit_test.sql
+2
-2
tests/conftest.py
tests/conftest.py
+2
-2
No files found.
.gitlab-ci.yml
View file @
d39f5008
...
...
@@ -57,10 +57,9 @@ test_py:
services
:
-
mysql:5.7
variables
:
MYSQL_DATABASE
:
"
course_
dev
"
MYSQL_DATABASE
:
"
course_
test
"
MYSQL_ALLOW_EMPTY_PASSWORD
:
"
yes"
script
:
-
echo "SELECT 'OK';" | mysql -uroot -h mysql "course_dev"
-
yarn test:py:cov
artifacts
:
paths
:
...
...
myinit_test.sql
View file @
d39f5008
CREATE
DATABASE
IF
NOT
EXISTS
course_
dev
;
USE
course_
dev
;
CREATE
DATABASE
IF
NOT
EXISTS
course_
test
;
USE
course_
test
;
tests/conftest.py
View file @
d39f5008
...
...
@@ -22,7 +22,7 @@ def datadir():
@
pytest
.
fixture
(
scope
=
"module"
)
def
db_host
():
try
:
MySQLdb
.
connect
(
'localhost'
,
"root"
,
""
,
"course_
dev
"
)
MySQLdb
.
connect
(
'localhost'
,
"root"
,
""
,
"course_
test
"
)
except
Exception
:
return
'mysql'
...
...
@@ -46,7 +46,7 @@ def db_app(config_app, db_host):
db
.
init_app
(
app
)
app
.
config
.
update
(
SQLALCHEMY_DATABASE_URI
=
f
'mysql://root:@
{
db_host
}
/course_
dev
'
)
app
.
config
.
update
(
SQLALCHEMY_DATABASE_URI
=
f
'mysql://root:@
{
db_host
}
/course_
test
'
)
with
TemporaryDirectory
()
as
temp_dir
:
app
.
config
.
update
(
...
...
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