Skip to content

Commit

Permalink
Fix test variable
Browse files Browse the repository at this point in the history
  • Loading branch information
juga0 committed Jun 3, 2017
1 parent 6a8e2a4 commit 13165c3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
language: python
sudo: required
dist: precise
dist: trusty
python:
- '2.7'
- '3.5'
# - '3.5'

before_install:
- sudo apt update && sudo apt install -y python-dev
Expand All @@ -14,9 +14,8 @@ install:
env:
- TOX_ENV=style
- TOX_ENV=py27,stats
- TOX_ENV=py35,stats
# - TOX_ENV=py35,stats
- TOX_ENV=doc
- TOX_ENV=lint

script:
- cd dhcpcanon
Expand Down
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def dhcpcanon_maker(request):

def maker():
"""."""
dhcpcanon = DHCPCAPFSM(client_mac="00:0a:0b:0c:0d:0f")
dhcpcanon = DHCPCAPFSM(client_mac="00:0a:0b:0c:0d:0f", iface='eth0')
return dhcpcanon
return maker

Expand All @@ -29,7 +29,7 @@ def dhcpcap_maker(request):
"""Return a function which creates initialized dhcpcap instances."""
def maker():
"""."""
dhcpcap = DHCPCAP(client_mac="00:0a:0b:0c:0d:0f")
dhcpcap = DHCPCAP(client_mac="00:0a:0b:0c:0d:0f", iface='eth0')
return dhcpcap
return maker

Expand Down
4 changes: 2 additions & 2 deletions tests/test_dhcpcap.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
logging.basicConfig(format=FORMAT, level=logging.DEBUG)
logger = logging.getLogger(__name__)

LEASE_REQUEST = DHCPCAPLease(interface='enp0s25', address='192.168.1.2',
LEASE_REQUEST = DHCPCAPLease(interface='eth0', address='192.168.1.2',
server_id='192.168.1.1',
next_server='192.168.1.1',
router='192.168.1.1', subnet_mask='255.255.255.0',
Expand All @@ -22,7 +22,7 @@
subnet_mask_cidr='', subnet='', expiry='',
renew='', rebind='')

LEASE_ACK = DHCPCAPLease(interface='enp0s25', address='192.168.1.2',
LEASE_ACK = DHCPCAPLease(interface='eth0', address='192.168.1.2',
server_id='192.168.1.1', next_server='192.168.1.1',
router='192.168.1.1', subnet_mask='255.255.255.0',
broadcast_address='192.168.1.255',
Expand Down

0 comments on commit 13165c3

Please sign in to comment.