Skip to content

Commit

Permalink
fix: remove the uAgents storage function test for now
Browse files Browse the repository at this point in the history
  • Loading branch information
gautamgambhir97 committed Oct 6, 2023
1 parent a911960 commit 01c74c2
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions tests/automation_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,32 +115,6 @@ def test_Getting_uAgent_addresses(self):
assert False
print("Port 8000 is not in use.")

def test_using_uAgents_storage_function(self):
self.driver.find_element(
By.XPATH, "//a[text()='Using uAgents storage function'][1]"
).click()
self.driver.find_element(
By.XPATH, "//button[@title='Copy code']").click()
time.sleep(3)
storage_function = pyperclip.paste()
with tempfile.TemporaryDirectory() as temp_dir:
temp_file_path = os.path.join(temp_dir, "temp_script.py")
with open(temp_file_path, "w") as temp_file:
temp_file.write(storage_function)
result = subprocess.Popen(
["python", temp_file_path, "--port", "8000"])
print("Python script output:")
print(result.stdout)
time.sleep(6)
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
results = sock.connect_ex(("localhost", 8000))
if results == 0:
assert True
terminate_process_by_port(8000)
else:
assert False
print("Port 8000 is not in use.")

def test_registering_in_the_Almanac_Contract(self):
self.driver.find_element(
By.XPATH, "//a[text()='Registering in the Almanac Contract'][1]"
Expand Down

0 comments on commit 01c74c2

Please sign in to comment.