mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
I changed the django mock to support both 1.x and 2.x routing APIs, which is not really a nice long term solution.
8 lines
239 B
Python
8 lines
239 B
Python
from functools import partial
|
|
|
|
def _path(route, view, kwargs=None, name=None, Pattern=None):
|
|
pass
|
|
|
|
path = partial(_path, Pattern='RoutePattern (but this is a mock)')
|
|
re_path = partial(_path, Pattern='RegexPattern (but this is a mock)')
|