获取 CSRF Token 的方法,供外部调用。
(self)
| 145 | return response |
| 146 | |
| 147 | def get_csrf_token(self): |
| 148 | """ |
| 149 | 获取 CSRF Token 的方法,供外部调用。 |
| 150 | """ |
| 151 | if self.csrf_token is None: |
| 152 | return self.fetch_csrf_token() |
| 153 | return self.csrf_token |
| 154 | |
| 155 | def import_scripts(self, sync_urls): |
| 156 | """ |
nothing calls this directly
no test coverage detected