Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execute tutorial notebooks during install-and-test in temporary db #41

Closed
danielhuppmann opened this issue May 29, 2018 · 1 comment
Closed
Labels
enh New features & functionality

Comments

@danielhuppmann
Copy link
Member

Currently, when installing and running unit tests, the tutorial notebooks are executed using the local default database. Over time, this db will become clogged by thousands of transport problems. It would be better to use temporary database instead.

This could be achieved by replacing the line
"mp = ix.Platform(dbtype='HSQLDB')"
in any notebook by:
"mp = ix.Platform(dbprops=os.path.expanduser(os.path.join('~', '.local', 'ixmp', 'unittest')), dbtype='HSQLDB')".

Where all files starting with unittest in ~\.local\ixmp will be deleted after the last unit test.

Note that changing this in the notebook itself would defeat the purpose...

@danielhuppmann danielhuppmann added the enh New features & functionality label May 29, 2018
@khaeru
Copy link
Member

khaeru commented Oct 26, 2019

This was fixed in #130.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enh New features & functionality
Projects
None yet
Development

No branches or pull requests

3 participants