:orphan: :py:mod:`oioioi.filetracker.tests` ================================== .. py:module:: oioioi.filetracker.tests Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: oioioi.filetracker.tests.TestFileField oioioi.filetracker.tests.TestFileStorage oioioi.filetracker.tests.TestStreamingMixin oioioi.filetracker.tests.TestFileStorageViews oioioi.filetracker.tests.TestFileFixtures oioioi.filetracker.tests.TestFileUtils .. py:class:: TestFileField(methodName='runTest') Bases: :py:obj:`oioioi.base.tests.TestCase` Similar to TransactionTestCase, but use `transaction.atomic()` to achieve test isolation. In most situations, TestCase should be preferred to TransactionTestCase as it allows faster execution. However, there are some situations where using TransactionTestCase might be necessary (e.g. testing some transactional behavior). On database backends with no transaction support, TestCase behaves as TransactionTestCase. .. py:method:: test_file_field() .. py:method:: test_filetracker_to_django_field() .. py:method:: test_django_to_filetracker_path() .. py:class:: TestFileStorage(methodName='runTest') Bases: :py:obj:`oioioi.base.tests.TestCase` Similar to TransactionTestCase, but use `transaction.atomic()` to achieve test isolation. In most situations, TestCase should be preferred to TransactionTestCase as it allows faster execution. However, there are some situations where using TransactionTestCase might be necessary (e.g. testing some transactional behavior). On database backends with no transaction support, TestCase behaves as TransactionTestCase. .. py:method:: _test_file_storage(storage) .. py:method:: test_dummy_file_storage() .. py:method:: test_real_file_storage() .. py:class:: TestStreamingMixin Bases: :py:obj:`object` .. py:method:: assertStreamingEqual(response, content) .. py:method:: streamingContent(response) .. py:class:: TestFileStorageViews(methodName='runTest') Bases: :py:obj:`oioioi.base.tests.TestCase`, :py:obj:`TestStreamingMixin` Similar to TransactionTestCase, but use `transaction.atomic()` to achieve test isolation. In most situations, TestCase should be preferred to TransactionTestCase as it allows faster execution. However, there are some situations where using TransactionTestCase might be necessary (e.g. testing some transactional behavior). On database backends with no transaction support, TestCase behaves as TransactionTestCase. .. py:attribute:: fixtures :annotation: = ['test_users'] .. py:method:: test_raw_file_view() .. py:class:: TestFileFixtures(methodName='runTest') Bases: :py:obj:`oioioi.base.tests.TestCase` Similar to TransactionTestCase, but use `transaction.atomic()` to achieve test isolation. In most situations, TestCase should be preferred to TransactionTestCase as it allows faster execution. However, there are some situations where using TransactionTestCase might be necessary (e.g. testing some transactional behavior). On database backends with no transaction support, TestCase behaves as TransactionTestCase. .. py:attribute:: fixtures :annotation: = ['test_file_field'] .. py:method:: test_file_fixtures() .. py:class:: TestFileUtils(methodName='runTest') Bases: :py:obj:`oioioi.base.tests.TestCase` Similar to TransactionTestCase, but use `transaction.atomic()` to achieve test isolation. In most situations, TestCase should be preferred to TransactionTestCase as it allows faster execution. However, there are some situations where using TransactionTestCase might be necessary (e.g. testing some transactional behavior). On database backends with no transaction support, TestCase behaves as TransactionTestCase. .. py:method:: test_content_disposition()