MCPcopy Index your code
hub / github.com/sqlalchemy/alembic / test_args

Method test_args

tests/test_script_production.py:180–197  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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 (

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