From b3992e1227eae7f034d59c6a9cb4183ebf8045a4 Mon Sep 17 00:00:00 2001 From: Mohamad Bastin Date: Wed, 8 Nov 2023 15:16:22 +0100 Subject: [PATCH] change api/v1 to api/gastap | add run test make commadn --- Makefile | 6 ++++++ brightIDfaucet/urls.py | 4 ++-- faucet/urls.py | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 5d058137..39de6c7e 100644 --- a/Makefile +++ b/Makefile @@ -22,3 +22,9 @@ docker-down-dev: docker-coverage-report: docker-compose exec -i backend bash -c "coverage run manage.py test; coverage report" + +docker-run-tests: + docker-compose exec -i backend bash -c "python manage.py test" + +docker-run-tests-no-i: + docker-compose exec backend bash -c "python manage.py test" diff --git a/brightIDfaucet/urls.py b/brightIDfaucet/urls.py index e4cd13dc..43ebe04a 100644 --- a/brightIDfaucet/urls.py +++ b/brightIDfaucet/urls.py @@ -14,7 +14,7 @@ 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) """ from django.contrib import admin -from django.urls import path, include +from django.urls import include, path from faucet.views import artwork_view @@ -25,7 +25,7 @@ urlpatterns = [ path("admin/", admin.site.urls), path("pass/art//", artwork_view), - path("api/v1/", include("faucet.urls")), + path("api/gastap/", include("faucet.urls")), path("api/auth/", include("authentication.urls")), path("api/tokentap/", include("tokenTap.urls")), path("api/prizetap/", include("prizetap.urls")), diff --git a/faucet/urls.py b/faucet/urls.py index ee488a5d..775e7718 100644 --- a/faucet/urls.py +++ b/faucet/urls.py @@ -41,7 +41,7 @@ path("user/last-claim/", LastClaimView.as_view(), name="last-claim"), path("user/claims/", ListClaims.as_view(), name="claims"), path("claims/count/", ClaimCountView.as_view(), name="claims-count"), - path("chain/list/", ChainListView.as_view(), name="chain-list"), # can have auth token for more user specific info + path("chain/list/", ChainListView.as_view(), name="chain-list"), path("chain/small-list/", SmallChainListView.as_view(), name="small-chain-list"), path( "chain//claim-max/",