From 46e2f04488b225b2fa06c645116e34fe32d8689f Mon Sep 17 00:00:00 2001 From: navjot Date: Mon, 28 Dec 2020 16:10:56 +0530 Subject: [PATCH] move randomtrackingdict.py out side the network dircetory --- src/{network => }/randomtrackingdict.py | 2 +- src/tests/test_randomtrackingdict.py | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) rename src/{network => }/randomtrackingdict.py (99%) diff --git a/src/network/randomtrackingdict.py b/src/randomtrackingdict.py similarity index 99% rename from src/network/randomtrackingdict.py rename to src/randomtrackingdict.py index cb4e310d..4b265f82 100644 --- a/src/network/randomtrackingdict.py +++ b/src/randomtrackingdict.py @@ -4,7 +4,7 @@ Track randomize ordered dict from threading import RLock from time import time -import helper_random +from pybitmessage import helper_random class RandomTrackingDict(object): diff --git a/src/tests/test_randomtrackingdict.py b/src/tests/test_randomtrackingdict.py index 09f8efad..9cad05b3 100644 --- a/src/tests/test_randomtrackingdict.py +++ b/src/tests/test_randomtrackingdict.py @@ -22,12 +22,9 @@ class TestRandomTrackingDict(unittest.TestCase): def test_check_randomtrackingdict(self): """Check the logic of RandomTrackingDict class""" - # from network import RandomTrackingDict - # from pybitmessage.network.randomtrackingdict import RandomTrackingDict - # from network.randomtrackingdict import RandomTrackingDict - from pybitmessage import network + from pybitmessage.randomtrackingdict import RandomTrackingDict a = [] - k = network.randomtrackingdict.RandomTrackingDict() + k = RandomTrackingDict() a.append(time()) for i in range(50000):