Skip to content

Commit

Permalink
Revert update of status
Browse files Browse the repository at this point in the history
  • Loading branch information
PonteIneptique committed Aug 27, 2024
1 parent ba1f815 commit 18e6c38
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 5 additions & 2 deletions tests/test_selenium/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,9 +605,12 @@ def edith_nth_row_value(
)
)

token = self.db.session.get(WordToken, int(id_row))

self.db.session.refresh(token)
return (
self.db.session.get(WordToken, int(id_row)),
self.driver_find_element_by_css_selector(rel_tr).text.strip(),
token,
self.element_find_element_by_css_selector(row, "#token_"+id_row+"_row > td a.save").text.strip(),
row
)

Expand Down
1 change: 0 additions & 1 deletion tests/test_selenium/test_token_correct.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ def test_edit_token_with_filter(self):
# ajouter corpus
token, status_text, row = self.edith_nth_row_value("]", value_type="lemma", id_row="1")
self.assert_saved(row)
self.db.session.refresh(token) # For some reason, without this, it does not work. Maybe cache ?
self.assert_token_has_values(token, lemma="]")


Expand Down

0 comments on commit 18e6c38

Please sign in to comment.