Skip to content

Commit

Permalink
unit tests: Port from nosetests to py.test
Browse files Browse the repository at this point in the history
  • Loading branch information
sjlongland committed Sep 4, 2021
1 parent 6af993f commit bcd9491
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion tests/test_frame/test_ax25frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from aioax25.frame import AX25Frame, AX25RawFrame, \
AX25UnnumberedInformationFrame

from nose.tools import eq_
from ..nosecompat import eq_
from ..hex import from_hex, hex_cmp

# Basic frame operations
Expand Down
2 changes: 1 addition & 1 deletion tests/test_frame/test_iframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from aioax25.frame import AX25Frame, AX258BitInformationFrame, \
AX2516BitInformationFrame

from nose.tools import eq_
from ..nosecompat import eq_
from ..hex import from_hex, hex_cmp


Expand Down
2 changes: 1 addition & 1 deletion tests/test_frame/test_sframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
AX2516BitReceiveReadyFrame, AX258BitRejectFrame, \
AX2516BitRejectFrame

from nose.tools import eq_
from ..nosecompat import eq_
from ..hex import from_hex, hex_cmp


Expand Down
2 changes: 1 addition & 1 deletion tests/test_frame/test_uframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
AX25UnnumberedFrame, AX25DisconnectModeFrame, \
AX25SetAsyncBalancedModeFrame, AX25TestFrame

from nose.tools import eq_
from ..nosecompat import eq_
from ..hex import from_hex, hex_cmp

def test_decode_uframe():
Expand Down
2 changes: 1 addition & 1 deletion tests/test_frame/test_xid.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
AX25XIDIFieldLengthReceiveParameter, \
AX25XIDRetriesParameter

from nose.tools import eq_
from ..nosecompat import eq_
from ..hex import from_hex, hex_cmp

def test_encode_xid():
Expand Down
2 changes: 1 addition & 1 deletion tests/test_peer/peer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Fixture for initialising an AX25 Peer
"""

from nose.tools import eq_, assert_almost_equal, assert_is, \
from ..nosecompat import eq_, assert_almost_equal, assert_is, \
assert_is_not_none, assert_is_none

from aioax25.peer import AX25Peer
Expand Down
2 changes: 1 addition & 1 deletion tests/test_peer/test_peerconnection.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Tests for AX25PeerConnectionHandler
"""

from nose.tools import eq_, assert_almost_equal, assert_is, \
from ..nosecompat import eq_, assert_almost_equal, assert_is, \
assert_is_not_none, assert_is_none

from aioax25.version import AX25Version
Expand Down
2 changes: 1 addition & 1 deletion tests/test_peer/test_peerhelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Tests for AX25PeerHelper
"""

from nose.tools import eq_
from ..nosecompat import eq_

from aioax25.peer import AX25PeerHelper
from aioax25.frame import AX25Address
Expand Down
2 changes: 1 addition & 1 deletion tests/test_peer/test_peernegotiation.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Tests for AX25PeerNegotiationHandler
"""

from nose.tools import eq_, assert_almost_equal, assert_is, \
from ..nosecompat import eq_, assert_almost_equal, assert_is, \
assert_is_not_none, assert_is_none

from aioax25.peer import AX25PeerNegotiationHandler
Expand Down
2 changes: 1 addition & 1 deletion tests/test_peer/test_peertest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Tests for AX25PeerTestHandler
"""

from nose.tools import eq_, assert_almost_equal
from ..nosecompat import eq_, assert_almost_equal

from aioax25.peer import AX25PeerTestHandler
from aioax25.frame import AX25Address, AX25TestFrame
Expand Down
2 changes: 1 addition & 1 deletion tests/test_peer/test_xid.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Tests for AX25Peer XID handling
"""

from nose.tools import eq_, assert_almost_equal, assert_is, \
from ..nosecompat import eq_, assert_almost_equal, assert_is, \
assert_is_not_none, assert_is_none

from aioax25.frame import AX25Address, AX25XIDClassOfProceduresParameter, \
Expand Down
2 changes: 1 addition & 1 deletion tests/test_station/test_attach_detach.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from aioax25.station import AX25Station

from nose.tools import eq_
from ..nosecompat import eq_
from ..mocks import DummyInterface


Expand Down
2 changes: 1 addition & 1 deletion tests/test_station/test_constructor.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from aioax25.station import AX25Station
from aioax25.version import AX25Version

from nose.tools import eq_
from ..nosecompat import eq_
from ..mocks import DummyInterface


Expand Down
2 changes: 1 addition & 1 deletion tests/test_station/test_getpeer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from aioax25.peer import AX25Peer
from aioax25.frame import AX25Address

from nose.tools import eq_
from ..nosecompat import eq_
from ..mocks import DummyInterface, DummyPeer


Expand Down
2 changes: 1 addition & 1 deletion tests/test_station/test_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from aioax25.version import AX25Version
from aioax25.frame import AX25Address

from nose.tools import eq_
from ..nosecompat import eq_
from ..mocks import DummyInterface


Expand Down
2 changes: 1 addition & 1 deletion tests/test_station/test_receive.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from aioax25.frame import AX25Address, AX25TestFrame, \
AX25UnnumberedInformationFrame

from nose.tools import eq_
from ..nosecompat import eq_
from ..mocks import DummyInterface, DummyPeer


Expand Down
2 changes: 1 addition & 1 deletion tests/test_uint.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3

from aioax25.uint import encode, decode
from nose.tools import eq_
from .nosecompat import eq_
from .hex import from_hex, hex_cmp

def test_encode_zero():
Expand Down

0 comments on commit bcd9491

Please sign in to comment.