-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
354becd
commit d762c21
Showing
8 changed files
with
158 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,4 @@ | |
from .fields import * | ||
from .utils import * | ||
|
||
__version__ = '0.11.2' | ||
__version__ = '0.11.3' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
from unittest import TestCase, skip | ||
|
||
from dirty_models import BaseModel, IntegerField | ||
|
||
|
||
class TestModel(BaseModel): | ||
inner_doc_field = IntegerField(doc='Inner doc') | ||
|
||
post_doc_field = IntegerField() | ||
"""Post doc""" | ||
|
||
#: Pre doc | ||
pre_doc_field = IntegerField() | ||
|
||
titled_field = IntegerField(title='Titled field') | ||
|
||
|
||
class DocStringTests(TestCase): | ||
|
||
def test_inner_docstring(self): | ||
self.assertEquals(TestModel.inner_doc_field.__doc__, 'Inner doc') | ||
|
||
@skip('No way') | ||
def test_post_docstring(self): | ||
self.assertEquals(TestModel().post_doc_field.__doc__, 'Post doc', TestModel().post_doc_field.__doc__) | ||
|
||
@skip('No way') | ||
def test_pre_docstring(self): | ||
self.assertEquals(TestModel().pre_doc_field.__doc__, 'Pre doc', TestModel().pre_doc_field.__doc__) | ||
|
||
def test_title(self): | ||
self.assertEquals(TestModel.titled_field.title, 'Titled field') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters