Skip to content

Commit

Permalink
Pushing Test 3 Registration and Test 4 Login drashland#3
Browse files Browse the repository at this point in the history
  • Loading branch information
KZsZs committed Aug 11, 2021
1 parent 62de354 commit 3fc7d24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def logging_in(driver):
login_password_field = driver.find_element_by_xpath('//input[@placeholder="Password"]')
login_email_field.click()
login_button = driver.find_element_by_xpath('//button[@class="btn btn-lg btn-primary pull-xs-right"]')
with open("user_data.csv", "r", encoding='utf-8') as csvfile_read:
with open("../user_data.csv", "r", encoding='utf-8') as csvfile_read:
csvreader = csv.reader(csvfile_read.readlines(), delimiter=',')
next(csvreader)
for row in csvreader:
Expand Down Expand Up @@ -160,7 +160,7 @@ def test__registration(self):
username = "user" + str(random_number)
email = username + "@gmail.com"
password = "ABCdefg123"
with open("conduit/test/user_data.csv", "a", newline='', encoding='utf-8') as csvfile:
with open("../user_data.csv", "a", newline='', encoding='utf-8') as csvfile:
user_writer = csv.writer(csvfile, delimiter=',')
user_writer.writerow([username, email, password])
username_field.click()
Expand Down Expand Up @@ -195,7 +195,7 @@ def test__login(self):
login_password_field = self.driver.find_element_by_xpath('//input[@placeholder="Password"]')
login_email_field.click()
login_button = self.driver.find_element_by_xpath('//button[@class="btn btn-lg btn-primary pull-xs-right"]')
with open("conduit/test/user_data.csv", "r", encoding='utf-8') as csvfile_read:
with open("../user_data.csv", "r", encoding='utf-8') as csvfile_read:
csvreader = csv.reader(csvfile_read.readlines(), delimiter=',')
next(csvreader)
for row in csvreader:
Expand Down
1 change: 1 addition & 0 deletions user_data.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
username, email, password

0 comments on commit 3fc7d24

Please sign in to comment.