Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Initial version proposal #6

Merged
merged 2 commits into from
Dec 22, 2021
Merged

Initial version proposal #6

merged 2 commits into from
Dec 22, 2021

Conversation

code-specialist
Copy link
Collaborator

@code-specialist code-specialist commented Dec 21, 2021

Done

TODO before merging

  • Unit tests
    - [ ] 100% test coverage
    - [ ] Test infrastructure running on actions runner

Comment on lines +18 to +34
# - name: Install Pip
# run: |
# python -m pip install --upgrade pip
#
# - name: "Install Test Dependencies"
# run: |
# python -m pip install wheel
# python -m pip install pytest
# python -m pip install pytest-cov
#
# - name: "Install dependencies"
# run: |
# python -m pip install -r requirements.txt
#
# - name: Test with pytest
# run: |
# pytest tests
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Testing works locally only, currently.

@yannicschroeer yannicschroeer force-pushed the v0.0.1a branch 8 times, most recently from 057951d to 81ba1e4 Compare December 21, 2021 21:04
mkdocs.yaml Outdated
@@ -0,0 +1,81 @@
site_name: FastAPI Keycloak Integration
site_url: https://docs.tebuto.com
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Todo

Copy link
Collaborator

@JonasScholl JonasScholl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm, looks like a lot of effort 😅👍 I think we should also focus on good and readable tests, especially when we open-source it, everybody should be able to understand them

from fastapi_keycloak.api import FastAPIKeycloak
from fastapi_keycloak.model import OIDCUser, UsernamePassword, HTTPMethod

__all__ = [FastAPIKeycloak, OIDCUser, UsernamePassword, HTTPMethod]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

__all__ has to contain stings (the names of the variables), so I would suggest to use the __name__ property of the classes

Comment on lines +25 to +38
name='fastapi-keycloak',
version='0.0.1a',
packages=get_packages(),
description='Keycloak integration for FastAPI',
long_description=read_description(),
long_description_content_type="text/markdown",
url='https://github.com/code-specialist/fastapi-keycloak',
install_requires=read_dependencies(),
python_requires='>=3.8',
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
],
)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When we publish this package on PyPI, we an and should add some more information, but we can do this later in another PR, just wanted to mention it

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What kind of information would you add?

@JonasScholl
Copy link
Collaborator

JonasScholl commented Dec 21, 2021

Btw, let's have a discussion about die the naming / categorization of tests :D I think the naming here doesn't fit to the type of tests. For instance: functional tests are a kind of black box tests where you call a system or a (bigger) system component and expect a specific output. You don't care about what happens inside. The word "funcional" is realated to the specified functional requirements and not meant as a function in the source code. The current tests in the functional-tests folder are clearly unit tests in my opinion 😄

@code-specialist
Copy link
Collaborator Author

Btw, let's have a discussion about die the naming / categorization of tests :D I think the naming here doesn't fit to the type of tests. For instance: functional tests are a kind of black box tests where you call a system or a (bigger) system component and expect a specific output. You don't care about what happens inside. The word "funcional" is realated to the specified functional requirements and not meant as a function in the source code. The current tests in the functional-tests folder are clearly unit tests in my opinion 😄

For me, a unit is a collection of functions, a class so to say, that fully sustains itself. A functional test tests functional behavior. I'm aware this is not common sense and that my personal interpretation of these two terms might irritate any logical thinking human being which is why I will rename them correspondingly

@code-specialist code-specialist merged commit 7e7ba9a into master Dec 22, 2021
@code-specialist code-specialist deleted the v0.0.1a branch December 22, 2021 13:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants