(self)
| 640 | |
| 641 | class EncodingTest(TestBase): |
| 642 | def setUp(self): |
| 643 | self.env = staging_env() |
| 644 | self.cfg = cfg = _no_sql_testing_config() |
| 645 | cfg.set_main_option("dialect_name", "sqlite") |
| 646 | cfg.remove_main_option("url") |
| 647 | self.a = util.rev_id() |
| 648 | script = ScriptDirectory.from_config(cfg) |
| 649 | script.generate_revision(self.a, "revision a", refresh=True) |
| 650 | write_script( |
| 651 | script, |
| 652 | self.a, |
| 653 | ( |
| 654 | """# coding: utf-8 |
| 655 | from __future__ import unicode_literals |
| 656 | revision = '%s' |
| 657 | down_revision = None |
| 658 | |
| 659 | from alembic import op |
| 660 | |
| 661 | def upgrade(): |
| 662 | op.execute("« S’il vous plaît…") |
| 663 | |
| 664 | def downgrade(): |
| 665 | op.execute("drôle de petite voix m’a réveillé") |
| 666 | |
| 667 | """ |
| 668 | % self.a |
| 669 | ), |
| 670 | encoding="utf-8", |
| 671 | ) |
| 672 | |
| 673 | def tearDown(self): |
| 674 | clear_staging_env() |
nothing calls this directly
no test coverage detected