(self)
| 178 | clear_staging_env() |
| 179 | |
| 180 | def test_args(self): |
| 181 | script = ScriptDirectory( |
| 182 | _get_staging_directory(), |
| 183 | file_template="%(rev)s_%(slug)s_" |
| 184 | "%(year)s_%(month)s_" |
| 185 | "%(day)s_%(hour)s_" |
| 186 | "%(minute)s_%(second)s", |
| 187 | ) |
| 188 | create_date = datetime.datetime(2012, 7, 25, 15, 8, 5) |
| 189 | eq_( |
| 190 | script._rev_path( |
| 191 | script.versions, "12345", "this is a message", create_date |
| 192 | ), |
| 193 | Path( |
| 194 | "%s/versions/12345_this_is_a_" |
| 195 | "message_2012_7_25_15_8_5.py" % _get_staging_directory() |
| 196 | ).absolute(), |
| 197 | ) |
| 198 | |
| 199 | @testing.combinations( |
| 200 | ( |
nothing calls this directly
no test coverage detected