From a3cc41a5cfea8aa6be4ee4ce9bebc1aec1c405c8 Mon Sep 17 00:00:00 2001
From: Brett Smith <brettcsmith@brettcsmith.org>
Date: Sun, 31 Dec 2017 10:04:37 -0500
Subject: [PATCH] tests: Run with oxrlib's decimal context.

---
 tests/__init__.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/__init__.py b/tests/__init__.py
index a891b6c..b46456c 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -1,10 +1,15 @@
 import datetime
+import decimal
 import io
 import pathlib
 import random
 
 import pytest
 
+from oxrlib import __main__ as oxrmain
+
+decimal.setcontext(oxrmain.decimal_context())
+
 TEST_DIR = pathlib.Path(__file__).parent
 
 class StringIO(io.StringIO):