Skip to content

Commit 1cd6827

Browse files
committed
updated two tests, removed one, changed imports for the others
1 parent 4358fcc commit 1cd6827

File tree

2 files changed

+12
-15
lines changed

2 files changed

+12
-15
lines changed

tests/integration_test_single_hop/await_ack_check.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
import sys
2-
3-
sys.path.append("../..")
4-
from backends.cqc_backend import CQCBackend
5-
from components.host import Host
6-
from components.network import Network
71
import components.protocols as protocols
2+
from components.network import Network
3+
from components.host import Host
4+
from backends.cqc_backend import CQCBackend
85

96

107
def main():
8+
print("Skip test, this test has to be updated!")
9+
return
1110
backend = CQCBackend()
1211
network = Network.get_instance()
1312
nodes = ["Alice", "Bob", "Eve", "Dean"]
@@ -29,8 +28,10 @@ def main():
2928
network.add_host(h)
3029

3130
# print(f"ack test - SEND CLASSICAL - started at {time.strftime('%X')}")
32-
hosts['alice'].send_classical(hosts['bob'].host_id, 'hello bob one', await_ack=True)
33-
hosts['alice'].send_classical(hosts['bob'].host_id, 'hello bob two', await_ack=True)
31+
hosts['alice'].send_classical(
32+
hosts['bob'].host_id, 'hello bob one', await_ack=True)
33+
hosts['alice'].send_classical(
34+
hosts['bob'].host_id, 'hello bob two', await_ack=True)
3435
# print(f"ack test - SEND CLASSICAL - finished at {time.strftime('%X')}")
3536

3637
saw_ack_1 = False

tests/integration_test_single_hop/epr_check.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,28 @@
11
from cqc.pythonLib import CQCConnection
2-
import sys
3-
import time
4-
5-
sys.path.append("../..")
62
from backends.cqc_backend import CQCBackend
3+
from backends.eqsn_backend import EQSNBackend
74
from components.host import Host
85
from components.network import Network
96
from objects.qubit import Qubit
7+
import time
108

119

1210
def main():
13-
backend = CQCBackend()
11+
backend = EQSNBackend()
1412
network = Network.get_instance()
1513
nodes = ["Alice", "Bob", "Eve", "Dean"]
1614
network.start(nodes, backend)
1715
network.delay = 0.7
1816
hosts = {'alice': Host('Alice', backend),
1917
'bob': Host('Bob', backend)}
2018

21-
2219
# A <-> B
2320
hosts['alice'].add_connection('Bob')
2421
hosts['bob'].add_connection('Alice')
2522

2623
hosts['alice'].start()
2724
hosts['bob'].start()
2825

29-
3026
for h in hosts.values():
3127
network.add_host(h)
3228

0 commit comments

Comments
 (0)