tests.upload_tests module#

Site upload test.

These tests write to the wiki.

class tests.upload_tests.TestUpload(*args, **kwargs)[source]#

Bases: RequireLoginMixin, SiteWriteMixin, CheckHostnameMixin, TestCase

Test cases for upload.

abstract_class = False#
arrow_png = '/src/tests/data/images/1rightarrow.png'#
code = 'test'#
family = 'wikipedia'#
login = True#
net = True#
site = True#
sites = {'wikipedia:test': {'code': 'test', 'family': 'wikipedia'}}#
sounds_png = '/src/tests/data/images/MP_sounds.png'#
test_continue_filekey_chunked()[source]#

Test continuing to upload a file with using chunked mode.

test_continue_filekey_once()[source]#

Test continuing to upload a file without using chunked mode.

test_offset_missmatch()[source]#

Test trying to continue with a different offset.

test_offset_oversize()[source]#

Test trying to continue with an offset which is to large.

test_png()[source]#

Test uploading a png using Site.upload.

test_png_chunked()[source]#

Test uploading a png in two chunks using Site.upload.

test_sha1_missmatch()[source]#

Test trying to continue with a different file.

write = True#