Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two identical tests #5

Closed
dycw opened this issue Apr 29, 2021 · 3 comments
Closed

Two identical tests #5

dycw opened this issue Apr 29, 2021 · 3 comments

Comments

@dycw
Copy link

dycw commented Apr 29, 2021

Hi, I discovered blacksheep and have been very impressed - then I wandered here. I noticed

https://github.com/Neoteroi/guardpost/blob/c3e9f6a2c52e96c0d0b7b6dd92002174144bb3fc/tests/test_authentication.py#L50-L61

are identical tests. I presume you were looking to test this guy:

https://github.com/Neoteroi/guardpost/blob/c3e9f6a2c52e96c0d0b7b6dd92002174144bb3fc/guardpost/authentication.py#L27-L38

@RobertoPrevato
Copy link
Member

Hi! Thank you, indeed you are right.
I will fix soon, probably in the weekend.

PS. soon I will share a nice demo / project template for my framework, which includes JWT Bearer authentication for users using access tokens issued by Azure Active Directory (applicable to any identity provider using OAuth).

@dycw
Copy link
Author

dycw commented May 2, 2021

Thanks! I am experienced in Python but just getting into get into web development - I've found Blacksheep to be extremely beautiful. I would love examples to get me going!

RobertoPrevato added a commit that referenced this issue May 3, 2021
@RobertoPrevato
Copy link
Member

Hi @dycw,
Since you wrote that you would love examples, I write to give you an update:

  1. Today I published a library to simplify the use of SQLAlchemy in BlackSheep -> https://github.com/Neoteroi/BlackSheep-SQLAlchemy - in this repository you can also see an example of API that uses db connections or ORM db sessions from SQLAlchemy; the tests folder also contain an example of ORM class applied using migrations with Alembic (applied in GitHub Actions)
  2. A few days ago I started publishing an advanced demo project, with many features, but it's still a work in progress; it's here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants