Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-11515

tests.getTempFilePath should remove any existing file

    Details

    • Type: Story
    • Status: To Do
    • Priority: Undefined
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: utils
    • Labels:
    • Templates:
    • Story Points:
      1
    • Team:
      Data Release Production

      Description

      An unrelated previous test failure that leaves the old file around can cause problems if the block inside this context manager appends to the previous file if it already exists.

      I'm also not certain if the context manager is supposed to be letting the file stick around when the test fails, but that is what I'm seeing (with the file in question a sqlite3 database).

        Attachments

          Container Issues

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  jbosch Jim Bosch
                  Watchers:
                  Jim Bosch, John Swinbank, Paul Price, Tim Jenness
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:

                    Summary Panel