This repository has been archived by the owner on Apr 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
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
ducdetronquito
committed
Dec 30, 2016
1 parent
4c137d3
commit 4e37bf4
Showing
7 changed files
with
97 additions
and
8 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from plume.plume import Criterion, Field | ||
|
||
import pytest | ||
|
||
|
||
class TestCriterion: | ||
|
||
def test_is_slotted(self): | ||
with pytest.raises(AttributeError): | ||
Criterion(Field, '==', 'value').__dict__ |
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,47 @@ | ||
from plume.plume import (BaseField, Field, FloatField, IntegerField, PrimaryKeyField, TextField) | ||
|
||
import pytest | ||
|
||
|
||
class TestBaseField: | ||
|
||
def test_is_slotted(self): | ||
with pytest.raises(AttributeError): | ||
BaseField().__dict__ | ||
|
||
|
||
class TestField: | ||
|
||
def test_is_slotted(self): | ||
with pytest.raises(AttributeError): | ||
Field().__dict__ | ||
|
||
|
||
class TestFloatField: | ||
|
||
def test_is_slotted(self): | ||
with pytest.raises(AttributeError): | ||
FloatField().__dict__ | ||
|
||
|
||
class TestIntegerField: | ||
|
||
def test_is_slotted(self): | ||
with pytest.raises(AttributeError): | ||
IntegerField().__dict__ | ||
|
||
|
||
class TestPrimaryKeyField: | ||
|
||
def test_is_slotted(self): | ||
with pytest.raises(AttributeError): | ||
PrimaryKeyField().__dict__ | ||
|
||
|
||
class TestTextField: | ||
|
||
def test_is_slotted(self): | ||
with pytest.raises(AttributeError): | ||
TextField().__dict__ | ||
|
||
|
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 |
---|---|---|
@@ -1,5 +1,10 @@ | ||
from plume.plume import Manager, Model | ||
|
||
import pytest | ||
|
||
|
||
class TestManagerAPI: | ||
pass | ||
|
||
def test_is_slotted(self): | ||
with pytest.raises(AttributeError): | ||
Manager(Model).__dict__ |
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