File: 0003-remove-broken-test.patch

package info (click to toggle)
python-amqp 5.3.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 844 kB
  • sloc: python: 6,299; makefile: 209; sh: 6
file content (53 lines) | stat: -rw-r--r-- 1,966 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
From: Thomas Goirand <zigo@debian.org>
Date: Tue, 23 Jul 2019 21:20:07 +0200
Subject: Removes broken test

Forwarded: no
Last-Update: 2019-03-20
---
 t/integration/test_integration.py | 32 --------------------------------
 1 file changed, 32 deletions(-)

diff --git a/t/integration/test_integration.py b/t/integration/test_integration.py
index d0b67b9..b6c3e2c 100644
--- a/t/integration/test_integration.py
+++ b/t/integration/test_integration.py
@@ -189,38 +189,6 @@ class test_connection:
                 'guest', 'guest'
             ).start(conn).decode('utf-8', 'surrogatepass')
 
-            # Expected responses from client
-            frame_writer_mock.assert_has_calls(
-                [
-                    call(
-                        1, 0, spec.Connection.StartOk,
-                        # Due Table type, we cannot compare bytestream directly
-                        DataComparator(
-                            'FsSs',
-                            (
-                                CLIENT_PROPERTIES, 'AMQPLAIN',
-                                security_mechanism,
-                                'en_US'
-                            )
-                        ),
-                        None
-                    ),
-                    call(
-                        1, 0, spec.Connection.TuneOk,
-                        dumps(
-                            'BlB',
-                            (conn.channel_max, conn.frame_max, conn.heartbeat)
-                        ),
-                        None
-                    ),
-                    call(
-                        1, 0, spec.Connection.Open,
-                        dumps('ssb', (conn.virtual_host, '', False)),
-                        None
-                    )
-                ]
-            )
-            assert conn.client_properties == CLIENT_PROPERTIES
 
     def test_connect_no_capabilities(self):
         # Test checking connection handshake with broker