Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #3326 #3328

Merged
merged 3 commits into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix tests
  • Loading branch information
antgonza committed Nov 16, 2023
commit dc91624d1c572378bccfecd81898adb2d2cbf5cd
1 change: 1 addition & 0 deletions qiita_pet/handlers/study_handlers/sample_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ def sample_template_overview_handler_get_request(study_id, user):
# the list of old filepaths
st = SampleTemplate(study_id)
all_st_files = st.get_filepaths()
st_fp_id = all_st_files[0][0]
# For the old filepaths we are only interested in their basename
st_files = [basename(fp) for _, fp in all_st_files]
# The number of samples - this is a space efficient way of counting
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,6 @@ def test_sample_template_overview_handler_get_request(self):
'num_columns': 0,
'columns': [],
'sample_restrictions': ''}
# the first element is the current fp and the name is based on the
# last update so just removing to easy test
obs['st_files'].pop(0)
self.assertEqual(obs, exp)

def test_sample_template_columns_get_req(self):
Expand Down
Loading