Files @ bf5c2c75c976
Branch filter:

Location: kallithea/rhodecode/tests/api/test_api_hg.py

Marcin Kuzminski
fixes issue #856 file upload >1000 bytes on windows throws exception.

The returned object is a true file object on POSIX platforms.
On other platforms, it is a file-like object whose `file` attribute is the
underlying true file object. We check if such object has a file attribute
which is missing on POSIX platform
1
2
3
4
5
6
7
from rhodecode.tests import *
from rhodecode.tests.api.api_base import BaseTestApi


class TestHgApi(BaseTestApi, TestController):
    REPO = HG_REPO
    REPO_TYPE = 'hg'