chore: taking db dependencies out of requirements-dev.txt (#7605)

* chore: taking db dependencies out of requirements-dev.txt

The deps on mysqlclient and psycopg2

* Fix unit tests

* fix tox.ini

* fix tests
This commit is contained in:
Maxime Beauchemin
2019-06-23 22:37:41 -07:00
committed by GitHub
parent 1df4fa26c2
commit 859d6e7c6a
10 changed files with 58 additions and 27 deletions

View File

@@ -193,7 +193,7 @@ class ParsedQuery(object):
"""returns the query with the specified limit"""
"""does not change the underlying query"""
if not self._limit:
return f'{self.sql}\nLIMIT {new_limit}'
return f'{self.stripped()}\nLIMIT {new_limit}'
limit_pos = None
tokens = self._parsed[0].tokens
# Add all items to before_str until there is a limit