Skip to content

Commit

Permalink
Removed extra components method
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurosipyan committed Jan 24, 2019
1 parent 394afac commit d1d09a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
4 changes: 2 additions & 2 deletions JamaScript/JamaScript.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,8 @@ def main():
global main_selection, display
main_selection = choicebox("What would you like to do?", choices=choices, title=title)
if main_selection == "Add main components with their sets":
from file_handler import root_components_file
add_components_to_root_level(root_components_file())
from file_handler import components_file
add_components_to_root_level(components_file())
add_sets_to_components()
add_test_management()
add_test_cases_and_defects()
Expand Down
12 changes: 0 additions & 12 deletions JamaScript/file_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,6 @@ def get_file():
return fileopenbox(msg="Please select the excel file you'd wish to migrate", title="JamaScript", default='*', filetypes=".xlsx", multiple=False)


def root_components_file():
while True:
root_cmp_file_name = get_file()
try:
cmp_excel_file = pd.ExcelFile(root_cmp_file_name)
df = cmp_excel_file.parse("Sheet1")
return df.iloc[:, 0].tolist()
except FileNotFoundError:
print("Error: File not found")
root_components_file()


def components_file():
while True:
cmp_file_name = get_file()
Expand Down

0 comments on commit d1d09a8

Please sign in to comment.