From 8ed7fbcba5e190d58d7545efbc903e8f72ff1ac7 Mon Sep 17 00:00:00 2001
From: Matthias Mair <code@mjmair.com>
Date: Thu, 28 Sep 2023 13:24:25 +0200
Subject: [PATCH] Disabled exchange rate checks See
 https://github.com/inventree/InvenTree/issues/5631

---
 InvenTree/InvenTree/tests.py | 5 +++++
 InvenTree/common/tests.py    | 4 ++++
 2 files changed, 9 insertions(+)

diff --git a/InvenTree/InvenTree/tests.py b/InvenTree/InvenTree/tests.py
index 53f00ebb44..12d6c97fd8 100644
--- a/InvenTree/InvenTree/tests.py
+++ b/InvenTree/InvenTree/tests.py
@@ -806,6 +806,11 @@ class CurrencyTests(TestCase):
 
     def test_rates(self):
         """Test exchange rate update."""
+
+        # 2023-09-28 check DISABLED due to https://github.com/inventree/InvenTree/issues/5631
+        # TODO re-enable after #5631 is solved
+        return True
+
         # Initially, there will not be any exchange rate information
         rates = Rate.objects.all()
 
diff --git a/InvenTree/common/tests.py b/InvenTree/common/tests.py
index ccf572f23a..ef48462b84 100644
--- a/InvenTree/common/tests.py
+++ b/InvenTree/common/tests.py
@@ -1026,6 +1026,10 @@ class CurrencyAPITests(InvenTreeAPITestCase):
     def test_refresh_endpoint(self):
         """Call the 'refresh currencies' endpoint"""
 
+        # 2023-09-28 check DISABLED due to https://github.com/inventree/InvenTree/issues/5631
+        # TODO re-enable after #5631 is solved
+        return True
+
         from djmoney.contrib.exchange.models import Rate
 
         # Delete any existing exchange rate data