(self)
| 1130 | return engine, buf |
| 1131 | |
| 1132 | def test_sequence_not_duped(self): |
| 1133 | engine, buf = self._engine_fixture() |
| 1134 | metadata = MetaData() |
| 1135 | t = Table( |
| 1136 | "testtable", |
| 1137 | metadata, |
| 1138 | Column( |
| 1139 | "pk", |
| 1140 | Integer, |
| 1141 | normalize_sequence(config, Sequence("testtable_pk_seq")), |
| 1142 | primary_key=True, |
| 1143 | ), |
| 1144 | ) |
| 1145 | |
| 1146 | t.create(engine) |
| 1147 | t.drop(engine) |
| 1148 | |
| 1149 | eq_(re.findall(r"CREATE (\w+)", buf.getvalue()), ["SEQUENCE", "TABLE"]) |
| 1150 | |
| 1151 | eq_(re.findall(r"DROP (\w+)", buf.getvalue()), ["TABLE", "SEQUENCE"]) |
| 1152 | |
| 1153 | |
| 1154 | class SchemaTranslateTest(fixtures.TestBase, testing.AssertsExecutionResults): |
nothing calls this directly
no test coverage detected