Skip to content
This repository was archived by the owner on Apr 22, 2024. It is now read-only.

Commit 8344d1c

Browse files
committed
Fixing tests and Pylama warnings
1 parent 74f7b0a commit 8344d1c

51 files changed

Lines changed: 60 additions & 10 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

tests/test_struct.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Automate struct tests."""
22
import unittest
3+
34
from tests.raw_dump import RawDump
45

56

tests/v0x01/test_asynchronous/test_error_msg.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from pyof.foundation.basic_types import BinaryData
33
from pyof.v0x01.asynchronous.error_msg import (BadRequestCode, ErrorMsg,
44
ErrorType)
5+
56
from tests.test_struct import TestStruct
67

78

tests/v0x01/test_asynchronous/test_packet_in.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Packet in message tests."""
22
from pyof.v0x01.asynchronous.packet_in import PacketIn, PacketInReason
3+
34
from tests.test_struct import TestStruct
45

56

tests/v0x01/test_asynchronous/test_port_status.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from pyof.v0x01.asynchronous.port_status import PortReason, PortStatus
55
from pyof.v0x01.common.phy_port import (PhyPort, PortConfig, PortFeatures,
66
PortState)
7+
78
from tests.test_struct import TestStruct
89

910

tests/v0x01/test_common/test_action.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
ActionVendorHeader, ActionVlanPCP,
66
ActionVlanVid)
77
from pyof.v0x01.common.phy_port import Port
8+
89
from tests.test_struct import TestStruct
910

1011

tests/v0x01/test_controller2switch/test_barrier_reply.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Barrier reply message tests."""
22
from pyof.v0x01.controller2switch.barrier_reply import BarrierReply
3+
34
from tests.test_struct import TestStruct
45

56

tests/v0x01/test_controller2switch/test_barrier_request.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Barrier request message tests."""
22
from pyof.v0x01.controller2switch.barrier_request import BarrierRequest
3+
34
from tests.test_struct import TestStruct
45

56

tests/v0x01/test_controller2switch/test_features_reply.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from pyof.foundation.basic_types import DPID, HWAddress
33
from pyof.v0x01.common.phy_port import PhyPort, PortConfig, PortState
44
from pyof.v0x01.controller2switch.features_reply import FeaturesReply
5+
56
from tests.test_struct import TestStruct
67

78

tests/v0x01/test_controller2switch/test_features_request.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Feature request message tests."""
22
from pyof.v0x01.controller2switch.features_request import FeaturesRequest
3+
34
from tests.test_struct import TestStruct
45

56

tests/v0x01/test_controller2switch/test_flow_mod.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from pyof.v0x01.common.flow_match import Match
44
from pyof.v0x01.common.phy_port import Port
55
from pyof.v0x01.controller2switch.flow_mod import FlowMod, FlowModCommand
6+
67
from tests.test_struct import TestStruct
78

89

0 commit comments

Comments
 (0)