MCPcopy
hub / github.com/sqlalchemy/alembic / test_epoch

Method test_epoch

tests/test_script_production.py:215–228  ·  view source on GitHub ↗
(self, create_date, expected)

Source from the content-addressed store, hash-verified

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(

Callers

nothing calls this directly

Calls 3

_rev_pathMethod · 0.95
ScriptDirectoryClass · 0.90
_get_staging_directoryFunction · 0.90

Tested by

no test coverage detected