mirror of
https://github.com/planetmint/planetmint.git
synced 2025-03-30 15:08:31 +00:00

* Integrate zenroom acceptance test * fixed zenroom reference * added additional dependences to the docker fils so that zenroom can be executed. added zenroom from git repo, because pypi servs an older buggy version * using the custom planetmintdriver branch to avoid pypi zendesk downloads * Added zenroom test * Added zenroom test Signed-off-by: Sangat Das <sangatdas5@gmail.com> * Change reference to planetmint-driver to planetmint-driver-python Signed-off-by: Sangat Das <sangatdas5@gmail.com> * Basic structuring * Added new classes in transactions/common * Added Create and Transfer as separate transactions * Resolved errors related to transactions.common * Fixing imports * Resolved issues of election transaction * Resolve flake8 issues Signed-off-by: Sangat Das <sangatdas5@gmail.com> * Resolve remaining flake8 issues Signed-off-by: Sangat Das <sangatdas5@gmail.com> * Resolve remaining flake8 issues Signed-off-by: Sangat Das <sangatdas5@gmail.com> Co-authored-by: Jürgen Eckel <juergen@riddleandcode.com> Co-authored-by: ArpitShukla007 <arpitnshukla@gmail.com>
23 lines
849 B
Python
23 lines
849 B
Python
# Copyright © 2020 Interplanetary Database Association e.V.,
|
|
# Planetmint and IPDB software contributors.
|
|
# SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
|
|
# Code is Apache-2.0 and docs are CC-BY-4.0
|
|
|
|
import pytest
|
|
|
|
|
|
def test_get_connection_raises_a_configuration_error(monkeypatch):
|
|
from planetmint.transactions.common.exceptions import ConfigurationError
|
|
from planetmint.backend import connect
|
|
|
|
with pytest.raises(ConfigurationError):
|
|
connect('msaccess', 'localhost', '1337', 'mydb')
|
|
|
|
with pytest.raises(ConfigurationError):
|
|
# We need to force a misconfiguration here
|
|
monkeypatch.setattr('planetmint.backend.connection.BACKENDS',
|
|
{'catsandra':
|
|
'planetmint.backend.meowmeow.Catsandra'})
|
|
|
|
connect('catsandra', 'localhost', '1337', 'mydb')
|