#915 Add default SQL schema for tests

This schema is now adapted to work on this repository instead of the
"OpenGnsys" general repository.
master
Roberto Hueso Gómez 2020-10-07 12:11:59 +02:00 committed by OpenGnSys Support Team
parent 35f067bf90
commit 5b1efd0b53
2 changed files with 1172 additions and 1 deletions

1171
cfg/ogAdmBD.sql 100644

File diff suppressed because it is too large Load Diff

View File

@ -13,7 +13,7 @@ def start_mysql():
subprocess.run(['mysqladmin', 'drop', '-f', 'test-db'],
stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
subprocess.run(['mysqladmin', 'create', 'test-db'])
subprocess.run('mysql --default-character-set=utf8 test-db < ../../../../Database/ogAdmBD.sql', shell=True)
subprocess.run('mysql --default-character-set=utf8 test-db < ../cfg/ogAdmBD.sql', shell=True)
subprocess.run(['mysql', '-D', 'test-db', '-e', sql_data])
subprocess.run(['mysql', '-D', 'test-db', '-e', sql_create_user])