Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
modelgen
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
modelgen
Commits
198de66a
Commit
198de66a
authored
Jul 22, 2012
by
Taddeus Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved test database settings to config file.
parent
c9ee0e75
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
.gitignore
.gitignore
+1
-0
tests/test_generate.py
tests/test_generate.py
+4
-1
No files found.
.gitignore
View file @
198de66a
...
...
@@ -5,3 +5,4 @@
data/
coverage/*
.coverage
tests/config.py
tests/test_generate.py
View file @
198de66a
from
unittest
import
TestCase
import
MySQLdb
as
mysql
from
config
import
TEST_DB
from
generate
import
Model
,
php_value
,
php_assoc
,
flatten
,
read_tables
,
\
read_fields
class
GenerateTest
(
TestCase
):
conn
=
mysql
.
connect
(
'localhost'
,
'root'
,
'mysql12#$'
,
'test'
)
# TEST_DB = 'localhost', 'root', 'mysql12#$', 'modelgen_test'
conn
=
mysql
.
connect
(
*
TEST_DB
)
def
setUp
(
self
):
self
.
model
=
Model
(
'payments'
,
{})
...
...
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