Posts Tests¶
- class tests.posts.factories.CommentFactory(**kwargs)[source]¶
Bases:
DjangoModelFactory- author = <factory.declarations.SubFactory object>¶
- post = <factory.declarations.SubFactory object>¶
- text = <factory.declarations.LazyAttribute object>¶
- class tests.posts.factories.ImageCommentFactory(**kwargs)[source]¶
Bases:
DjangoModelFactory- comment = <factory.declarations.SubFactory object>¶
- image = <factory.declarations.LazyAttribute object>¶
- class tests.posts.factories.LikeFactory(**kwargs)[source]¶
Bases:
DjangoModelFactory- author = <factory.declarations.SubFactory object>¶
- post = <factory.declarations.SubFactory object>¶
- class tests.posts.factories.PostFactory(**kwargs)[source]¶
Bases:
DjangoModelFactory- author = <factory.declarations.SubFactory object>¶
- content = <factory.declarations.LazyAttribute object>¶
- likes_quantity = <factory.declarations.LazyAttribute object>¶
- status = 'published'¶
- title = <factory.declarations.LazyAttribute object>¶
- views_quantity = <factory.declarations.LazyAttribute object>¶
- visibility = 'public'¶
- class tests.posts.factories.PostMediaFactory(**kwargs)[source]¶
Bases:
DjangoModelFactory- original = <factory.declarations.LazyAttribute object>¶
- post = <factory.declarations.SubFactory object>¶
- class tests.posts.factories.TagFactory(**kwargs)[source]¶
Bases:
DjangoModelFactory- name = <factory.declarations.LazyAttribute object>¶
- class tests.posts.test_api.CommentImageAPIViewTestCase(methodName='runTest')[source]¶
Bases:
APITestCase
- class tests.posts.test_api.DeleteCommentAPIViewTestCase(methodName='runTest')[source]¶
Bases:
APITestCaseTest class for UpdateCommentAPIView
- class tests.posts.test_api.DeleteCommentImageAPIViewTestCase(methodName='runTest')[source]¶
Bases:
APITestCase
- class tests.posts.test_api.FavoriteViewSetTestCase(methodName='runTest')[source]¶
Bases:
APITestCase
- class tests.posts.test_api.PostAPIViewSetTestCase(methodName='runTest')[source]¶
Bases:
APITestCase
- class tests.posts.test_api.PostCommentAPIViewTestCase(methodName='runTest')[source]¶
Bases:
APITestCaseTest class for PostCommentAPIView
- pytestmark = [Mark(name='usefixtures', args=('jpg_file',), kwargs={})]¶
- class tests.posts.test_api.PostLikeAPIViewTestCase(methodName='runTest')[source]¶
Bases:
APITestCase
- class tests.posts.test_api.PostTagsAPIViewSetTestCase(methodName='runTest')[source]¶
Bases:
APITestCase
- class tests.posts.test_api.PostsSearchSortingAPITestCase(methodName='runTest')[source]¶
Bases:
APITestCase
- class tests.posts.test_api.TestCommentsPostAPIView(methodName='runTest')[source]¶
Bases:
APITestCaseTest comments Post API View
- class tests.posts.test_api.TestWebhookPostMediaAPIView(methodName='runTest')[source]¶
Bases:
APITestCaseTest WebhookPostMediaAPIView
- class tests.posts.test_api.UpdateCommentAPIViewTestCase(methodName='runTest')[source]¶
Bases:
APITestCaseTest class for UpdateCommentAPIView
- class tests.posts.test_api.UploadPostApiViewTestCase(methodName='runTest')[source]¶
Bases:
APITestCase- pytestmark = [Mark(name='usefixtures', args=('jpg_file',), kwargs={})]¶
- class tests.posts.test_services.CommentServiceTestCase(methodName='runTest')[source]¶
Bases:
TestCase- pytestmark = [Mark(name='usefixtures', args=('jpg_file',), kwargs={})]¶
- class tests.posts.test_services.PostCategoryServiceTestCase(methodName='runTest')[source]¶
Bases:
TestCase
- class tests.posts.test_services.TestPostCreationService(methodName='runTest')[source]¶
Bases:
TestCase- pytestmark = [Mark(name='usefixtures', args=('jpg_file',), kwargs={})]¶
- class tests.posts.test_services.TestPostMediaService(methodName='runTest')[source]¶
Bases:
TestCaseTest post media service
- class tests.posts.test_urls.PostURLsTestCase(methodName='runTest')[source]¶
Bases:
TestCase
- class tests.posts.test_serializers.TestCommentSerializer(methodName='runTest')[source]¶
Bases:
TestCase- pytestmark = [Mark(name='usefixtures', args=('jpg_file',), kwargs={})]¶
- class tests.posts.test_serializers.TestPostContentsSerializer(methodName='runTest')[source]¶
Bases:
TestCaseTest post contents serializer
- pytestmark = [Mark(name='usefixtures', args=('mp4_file',), kwargs={}), Mark(name='usefixtures', args=('jpg_file',), kwargs={})]¶
- class tests.posts.test_serializers.TestPostMediaContentSerializer(methodName='runTest')[source]¶
Bases:
TestCaseTest post media content serializer
- pytestmark = [Mark(name='usefixtures', args=('mp4_file',), kwargs={}), Mark(name='usefixtures', args=('invalid_resolution_jpg_file',), kwargs={}), Mark(name='usefixtures', args=('oversize_png_file',), kwargs={}), Mark(name='usefixtures', args=('jpg_file',), kwargs={}), Mark(name='usefixtures', args=('svg_file',), kwargs={})]¶
- class tests.posts.test_serializers.TestPostNotificationSerializer(methodName='runTest')[source]¶
Bases:
TestCaseTest post notification serializer
- class tests.posts.test_serializers.TestPostSerializer(methodName='runTest')[source]¶
Bases:
TestCase
- class tests.posts.test_serializers.TestUpdateCommentSerializer(methodName='runTest')[source]¶
Bases:
TestCase