- Issue created by @catch
- 🇬🇧United Kingdom catch
This one is tricky.
The methods assume a clean slate of file uploads (which is fair enough) but break when run one-after-the-other on the same install because they don't get a clean slate.
Another way to handle this would be to split to test in two, but ResourceTestBase contains a lot of setup steps which these methods rely on, in addition to actual test methods, so we would probably need to split the setup steps out into a trait that both ResourceTestBase and the new class can use, maybe that would be OK though.
- 🇬🇧United Kingdom catch
Trait doesn't help that much because you can't directly override properties between traits and a lot of what we'd want to share is properties. Can probably do a partial trait then redeclare various things in the class but it's not going to be ideal.
Another idea is to do the @requires not_relevant_to_this_test trick for literally every method in the base class for a split, maybe I'll try that to get something going.
- Status changed to Needs review
about 1 year ago 9:49pm 26 September 2023 - 🇬🇧United Kingdom catch
Figured it out I think - consolidating the tests that don't actually result in a file upload since those don't need a state reset. And combining two extremely similar test methods where one of them becomes and extra 3-4 lines on the other.
- last update
about 1 year ago 30,359 pass - @catch opened merge request.
- Status changed to RTBC
about 1 year ago 5:45pm 27 September 2023 - 🇺🇸United States smustgrave
From what I can tell consolidate is good and still covering what was there before.
- Status changed to Fixed
about 1 year ago 5:49pm 28 September 2023 Automatically closed - issue fixed for 2 weeks with no activity.