MCPcopy Index your code
hub / github.com/zzzeek/sqlalchemy / test_modulus

Method test_modulus

test/sql/test_operators.py:690–700  ·  view source on GitHub ↗
(self, modulus, paramstyle)

Source from the content-addressed store, hash-verified

688 argnames="paramstyle",
689 )
690 def test_modulus(self, modulus, paramstyle):
691 col = column("somecol", modulus())
692 self.assert_compile(
693 col.modulus(),
694 (
695 "somecol %%"
696 if paramstyle in ("format", "pyformat")
697 else "somecol %"
698 ),
699 dialect=default.DefaultDialect(paramstyle=paramstyle),
700 )
701
702 @testing.combinations(
703 ("format",),

Callers

nothing calls this directly

Calls 3

columnFunction · 0.90
assert_compileMethod · 0.80
modulusMethod · 0.45

Tested by

no test coverage detected