(self, create_date, expected)
| 213 | ), |
| 214 | ) |
| 215 | def test_epoch(self, create_date, expected): |
| 216 | script = ScriptDirectory( |
| 217 | _get_staging_directory(), |
| 218 | file_template="%(epoch)s_%(rev)s_%(slug)s_" |
| 219 | "%(year)s_%(month)s_" |
| 220 | "%(day)s_%(hour)s_" |
| 221 | "%(minute)s_%(second)s", |
| 222 | ) |
| 223 | eq_( |
| 224 | script._rev_path( |
| 225 | script.versions, "12345", "this is a message", create_date |
| 226 | ), |
| 227 | Path(expected % _get_staging_directory()).absolute(), |
| 228 | ) |
| 229 | |
| 230 | def _test_tz(self, timezone_arg, given, expected): |
| 231 | script = ScriptDirectory( |
nothing calls this directly
no test coverage detected