File: fix-test_list_physical_switches.patch

package info (click to toggle)
networking-l2gw 1%3A13.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,304 kB
  • sloc: python: 12,230; sh: 316; makefile: 31
file content (17 lines) | stat: -rw-r--r-- 727 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Fix test_list_physical_switches()
 Looks like ovs.jsonrpc.Session() has changed. This patch adapts the test.
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2018-09-13

--- networking-l2gw-13.0.0.orig/networking_l2gw/tests/unit/db/ovsdb/test_idl_impl.py
+++ networking-l2gw-13.0.0/networking_l2gw/tests/unit/db/ovsdb/test_idl_impl.py
@@ -55,7 +55,7 @@ class SimpleIdlTests(base.BaseTestCase):
         session_mock = mock.patch.object(
             ovs.jsonrpc.Session,
             'open',
-            return_value=ovs.jsonrpc.Session(None, None)
+            return_value=ovs.jsonrpc.Session(None, None, None)
         )
         wait_mock = mock.patch.object(idlutils, 'wait_for_change')