test: reset converter before and after fiat conversions
This commit is contained in:
@@ -16,6 +16,8 @@ from tests.conftest import log_has, log_has_re
|
|||||||
def reset_singleton_instance():
|
def reset_singleton_instance():
|
||||||
# Reset the singleton instance before each test
|
# Reset the singleton instance before each test
|
||||||
CryptoToFiatConverter._instances = {}
|
CryptoToFiatConverter._instances = {}
|
||||||
|
yield
|
||||||
|
CryptoToFiatConverter._instances = {}
|
||||||
|
|
||||||
|
|
||||||
def test_fiat_convert_is_singleton():
|
def test_fiat_convert_is_singleton():
|
||||||
|
|||||||
Reference in New Issue
Block a user