tests: Run with oxrlib's decimal context.
This commit is contained in:
parent
3b732505fa
commit
a3cc41a5cf
1 changed files with 5 additions and 0 deletions
|
@ -1,10 +1,15 @@
|
||||||
import datetime
|
import datetime
|
||||||
|
import decimal
|
||||||
import io
|
import io
|
||||||
import pathlib
|
import pathlib
|
||||||
import random
|
import random
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
from oxrlib import __main__ as oxrmain
|
||||||
|
|
||||||
|
decimal.setcontext(oxrmain.decimal_context())
|
||||||
|
|
||||||
TEST_DIR = pathlib.Path(__file__).parent
|
TEST_DIR = pathlib.Path(__file__).parent
|
||||||
|
|
||||||
class StringIO(io.StringIO):
|
class StringIO(io.StringIO):
|
||||||
|
|
Loading…
Reference in a new issue