Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Metagenomics
metagenedb
Commits
557a134f
Commit
557a134f
authored
Aug 10, 2020
by
Kenzo-Hugo Hillion
♻
Browse files
fix DeprecationWarnings
parent
bf4feb29
Pipeline
#35415
passed with stages
in 3 minutes and 15 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
backend/metagenedb/api/catalog/urls.py
View file @
557a134f
from
django.urls
import
path
from
django.conf.urls
import
url
,
include
from
django.conf.urls
import
include
from
django.urls
import
re_path
from
rest_framework.routers
import
DefaultRouter
,
DynamicRoute
,
Route
from
metagenedb.api.catalog
import
views
...
...
@@ -64,7 +65,7 @@ api_router.register(r'statistics', views.StatisticsViewSet, basename='statistics
urlpatterns
=
[
url
(
r
'v1/'
,
include
((
api_router
.
urls
,
'v1'
))),
re_path
(
r
'v1/'
,
include
((
api_router
.
urls
,
'v1'
))),
path
(
'admin/'
,
include
((
'metagenedb.api.catalog.admin_urls'
,
'admin'
))),
path
(
'celery-task-test/'
,
test_task_view
,
name
=
'celery-task-test'
),
]
backend/metagenedb/common/utils/test_df_operations.py
View file @
557a134f
from
unittest
import
TestCase
import
pandas
as
pd
from
pandas.
util.
testing
import
assert_series_equal
from
pandas.testing
import
assert_series_equal
from
metagenedb.common.utils.df_operations
import
get_mask
...
...
backend/metagenedb/urls.py
View file @
557a134f
...
...
@@ -14,12 +14,11 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from
django.contrib
import
admin
from
django.urls
import
include
,
path
from
django.conf.urls
import
url
from
django.urls
import
include
,
path
,
re_path
urlpatterns
=
[
path
(
'api/'
,
include
((
'metagenedb.api.urls'
,
'api'
))),
path
(
'admin/'
,
admin
.
site
.
urls
),
url
(
r
'^ht/'
,
include
(
'health_check.urls'
)),
re_path
(
r
'^ht/'
,
include
(
'health_check.urls'
)),
]
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment