(self)
| 2836 | t2 = table("table2", column("col1"), column("col2"), column("col3")) |
| 2837 | |
| 2838 | def test_prefixes(self): |
| 2839 | i = t1.insert() |
| 2840 | self.assert_compile( |
| 2841 | i, |
| 2842 | "INSERT INTO table1 (col1, col2, col3) " |
| 2843 | "VALUES (:col1, :col2, :col3)", |
| 2844 | ) |
| 2845 | |
| 2846 | gen = i.prefix_with("foober") |
| 2847 | self.assert_compile( |
| 2848 | gen, |
| 2849 | "INSERT foober INTO table1 (col1, col2, col3) " |
| 2850 | "VALUES (:col1, :col2, :col3)", |
| 2851 | ) |
| 2852 | |
| 2853 | self.assert_compile( |
| 2854 | i, |
| 2855 | "INSERT INTO table1 (col1, col2, col3) " |
| 2856 | "VALUES (:col1, :col2, :col3)", |
| 2857 | ) |
| 2858 | |
| 2859 | i2 = t1.insert().prefix_with("squiznart") |
| 2860 | self.assert_compile( |
| 2861 | i2, |
| 2862 | "INSERT squiznart INTO table1 (col1, col2, col3) " |
| 2863 | "VALUES (:col1, :col2, :col3)", |
| 2864 | ) |
| 2865 | |
| 2866 | gen2 = i2.prefix_with("quux") |
| 2867 | self.assert_compile( |
| 2868 | gen2, |
| 2869 | "INSERT squiznart quux INTO " |
| 2870 | "table1 (col1, col2, col3) " |
| 2871 | "VALUES (:col1, :col2, :col3)", |
| 2872 | ) |
| 2873 | |
| 2874 | def test_add_kwarg(self): |
| 2875 | i = t1.insert() |
nothing calls this directly
no test coverage detected