Skip to content

Commit

Permalink
Removed 'config' module
Browse files Browse the repository at this point in the history
  • Loading branch information
ccie18643 committed Sep 15, 2024
1 parent 7aab85d commit f2d5c93
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions tests__legacy/integration/packet_flows_rx.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@

from testslide import TestCase

from pytcp import config
from net_addr import Ip4Address, Ip4Host, Ip6Address, Ip6Host, MacAddress
from pytcp.lib.packet import PacketRx
from pytcp.lib.packet_stats import PacketStatsRx, PacketStatsTx
Expand Down Expand Up @@ -105,7 +104,6 @@ def _patch_config(self) -> None:
"""
for attribute, new_value in CONFIG_PATCHES.items():
stack.__dict__[attribute] = new_value
config.__dict__[attribute] = new_value

# Test name format:
# 'test_name__protocol_tested__test_description__optional_condition'
Expand Down
2 changes: 0 additions & 2 deletions tests__legacy/integration/packet_flows_rx_tx.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@

from testslide import StrictMock, TestCase

from pytcp import config
from net_addr import Ip4Address, Ip4Host, Ip6Address, Ip6Host, MacAddress
from pytcp.lib.packet import PacketRx
from pytcp.lib.packet_stats import PacketStatsRx, PacketStatsTx
Expand Down Expand Up @@ -167,7 +166,6 @@ def _patch_config(self) -> None:
"""
for attribute, new_value in CONFIG_PATCHES.items():
stack.__dict__[attribute] = new_value
config.__dict__[attribute] = new_value

# Test name format:
# 'test_name__protocol_tested__test_description__optional_condition'
Expand Down
2 changes: 0 additions & 2 deletions tests__legacy/unit/mock_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
from typing import no_type_check

from testslide import StrictMock, TestCase
from pytcp import config
from pytcp import stack
from net_addr import Ip4Address, Ip4Host, Ip6Address, Ip6Host, MacAddress
from pytcp.stack.arp_cache import ArpCache
Expand Down Expand Up @@ -133,7 +132,6 @@ def patch_config(self: TestCase, *, enable_log: bool = False) -> None:
"""
for attribute, new_value in CONFIG_PATCHES.items():
stack.__dict__[attribute] = new_value
config.__dict__[attribute] = new_value


# Had to disable type checking in this function because it modifies variables
Expand Down

0 comments on commit f2d5c93

Please sign in to comment.