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

Method test_generates_a_date

tests/test_script_production.py:290–301  ·  view source on GitHub ↗

test #1643

(self)

Source from the content-addressed store, hash-verified

288 )
289
290 def test_generates_a_date(self):
291 """test #1643"""
292 script = ScriptDirectory(
293 _get_staging_directory(),
294 file_template="%(rev)s_%(slug)s_"
295 "%(year)s_%(month)s_"
296 "%(day)s_%(hour)s_"
297 "%(minute)s_%(second)s",
298 timezone="utc",
299 )
300 # generates a date with no warnings
301 eq_(script._generate_create_date(), mock.ANY)
302
303 def test_default_tz(self):
304 self._test_tz(

Callers

nothing calls this directly

Calls 3

_generate_create_dateMethod · 0.95
ScriptDirectoryClass · 0.90
_get_staging_directoryFunction · 0.90

Tested by

no test coverage detected