File: 0005-Skip-tests-on-mongodb.patch

package info (click to toggle)
django-q 1.7.4-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,276 kB
  • sloc: python: 5,663; makefile: 181; sh: 30
file content (23 lines) | stat: -rw-r--r-- 738 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: =?utf-8?q?Pierre-Elliott_B=C3=A9cue?= <peb@debian.org>
Date: Sat, 22 Jan 2022 00:19:00 +0100
Subject: Skip tests on mongodb

Forwarded: not-needed

Mongodb is not in Debian, we can't test django-q against it.
---
 django_q/tests/test_brokers.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/django_q/tests/test_brokers.py b/django_q/tests/test_brokers.py
index 661d0f5..bea7712 100644
--- a/django_q/tests/test_brokers.py
+++ b/django_q/tests/test_brokers.py
@@ -250,6 +250,7 @@ def test_orm(monkeypatch):
     assert broker.queue_size() == 0
 
 
+@pytest.mark.skip(reason="No mongo in debian")
 @pytest.mark.django_db
 def test_mongo(monkeypatch):
     monkeypatch.setattr(Conf, "MONGO", {"host": MONGO_HOST, "port": 27017})