-
Notifications
You must be signed in to change notification settings - Fork 809
1966 renaming repositories #1972
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
Conversation
|
|
||
|
|
||
| class DirectoryFileStorageService(IFileStorageService): | ||
| class FilesystemStorage(IFileRepository): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| class FilesystemStorage(IFileRepository): | |
| class FileSystemStorage(IFileRepository): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Double check the naming of everything in the tests. There are classes, fixtures, and local variables named file_storage_service or similar.
|
|
||
|
|
||
| class DirectoryFileStorageService(IFileStorageService): | ||
| class FileSystemStorage(IFileRepository): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Repositories should be named after their interfaces.
| class FileSystemStorage(IFileRepository): | |
| class FileSystemFileRepository(IFileRepository): |
or
| class FileSystemStorage(IFileRepository): | |
| class LocalStorageFileRepository(IFileRepository): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why? Is this a general guideline that if we have an interface IAnimal, then concrete class will be called CatAnimal(IAnimal)?
|
|
||
|
|
||
| class MockFileStorageService(IFileStorageService): | ||
| class MockFileStorageService(IFileRepository): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| class MockFileStorageService(IFileRepository): | |
| class MockFileRepository(IFileRepository): |
| def flask_client(build_flask_client, file_storage_service): | ||
| container = StubDIContainer() | ||
| container.register_instance(IFileStorageService, file_storage_service) | ||
| container.register_instance(IFileRepository, file_storage_service) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| container.register_instance(IFileRepository, file_storage_service) | |
| container.register_instance(IFileRepository, file_repository) |
What does this PR do?
Fixes #1966
Renames repository files to snake case
Add any further explanations here.
PR Checklist
Testing Checklist
Explain Changes
Are the commit messages enough? If not, elaborate.