Skip to content

Commit

Permalink
Merge pull request #5634 from DrGFreeman/5633-fix-functional-test-fix…
Browse files Browse the repository at this point in the history
…ture-setup-failure

Make fixture independent of contents of storage directory
  • Loading branch information
rmol authored Nov 19, 2020
2 parents 315b470 + 4d2ef48 commit 3cee008
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions securedrop/tests/functional/test_journalist.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,9 @@ def missing_msg_file(self):
self._source_logs_out()

# Remove the message file from the store
storage_path = Path(self.journalist_app.storage.storage_path)
msg_files = [p for p in storage_path.rglob("*") if p.is_file()]
filesystem_id = self.source_app.crypto_util.hash_codename(self.source_name)
storage_path = Path(self.journalist_app.storage.storage_path) / filesystem_id
msg_files = [p for p in storage_path.glob("*-msg.gpg")]
assert len(msg_files) == 1
msg_files[0].unlink()

Expand Down

0 comments on commit 3cee008

Please sign in to comment.