Skip to content

Commit

Permalink
Use pypitoken to generate, check, introspect tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
ewjoachim committed Oct 26, 2021
1 parent 18ae3f7 commit 139e5d6
Show file tree
Hide file tree
Showing 16 changed files with 233 additions and 456 deletions.
4 changes: 4 additions & 0 deletions tests/functional/manage/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
from webob.multidict import MultiDict

from warehouse.accounts.interfaces import IPasswordBreachedService, IUserService
from warehouse.macaroons.interfaces import IMacaroonService
from warehouse.macaroons.services import database_macaroon_factory
from warehouse.manage import views

from ...common.db.accounts import EmailFactory, UserFactory
Expand All @@ -27,6 +29,8 @@ def test_save_account(self, pyramid_services, user_service, db_request):
pyramid_services.register_service(
breach_service, IPasswordBreachedService, None
)
macaroon_service = database_macaroon_factory(context={}, request=db_request)
pyramid_services.register_service(macaroon_service, IMacaroonService, None)
user = UserFactory.create(name="old name")
EmailFactory.create(primary=True, verified=True, public=True, user=user)
db_request.user = user
Expand Down
125 changes: 0 additions & 125 deletions tests/unit/macaroons/test_caveats.py

This file was deleted.

20 changes: 0 additions & 20 deletions tests/unit/macaroons/test_models.py

This file was deleted.

Loading

0 comments on commit 139e5d6

Please sign in to comment.