Skip to content

Commit

Permalink
Merge pull request #3160 from threefoldtech/development_fix_import_se…
Browse files Browse the repository at this point in the history
…lenium

Fix importing email in selenium tests
  • Loading branch information
A-Harby authored Jul 31, 2024
2 parents 0ce0199 + 73350d9 commit 33bf0c8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/playground/tests/frontend_selenium/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ def get_stellar_address():
def get_email():
config = configparser.ConfigParser()
config.read('Config.ini')
hex_seed = config['Utils']['email']
if (hex_seed == ''):
email = config['Utils']['email']
if (email == ''):
try:
hex_seed = json.loads(os.environ["EMAIL"])
email = os.environ["EMAIL"]
except:
print(
"You must add account Email either in Config.ini or by exporting EMAIL.")
return str(hex_seed)
return str(email)

def generate_string():
chars = string.ascii_uppercase + string.digits
Expand Down Expand Up @@ -188,4 +188,4 @@ def filter_result(nodes, data, resource):
for node in nodes:
if node[resource] >= data :
result += 1
return result
return result

0 comments on commit 33bf0c8

Please sign in to comment.