Age | Commit message (Collapse) | Author |
|
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
|
|
We now load the cards using pkg_resources. This is way better in many
aspects:
* we can install the package using pip without having issues loading
cards
* we don't need to chdir to / before running swiftstoryd
* we don't need to rely on data_files which is deprecated.
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
|
|
The cards from usr/share are not accessible when running the tests from
a temporary directory. This happens for instance when running
$ pybuild --test --test-pytest
Make sure that this command would succeed by mocking the calls to open.
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
|
|
Also, the GameManager object is not created globally anymore when
importing the module.
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
|
|
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
|
|
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
|
|
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
|
|
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
|
|
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
|
|
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
|
|
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
|
|
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
|
|
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
|
|
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
|
|
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
|