Skip to content

Commit

Permalink
Minor changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandojunior committed Mar 27, 2016
1 parent e8654c1 commit dab7347
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Post(Model):
'''
```

* Import `Database` from orm to create a data access object (DAO).
* Import `Database` to create a data access object (DAO).

```py
>>> from orm import Database
Expand Down Expand Up @@ -96,7 +96,7 @@ Save and get a post.
Get all posts from database.

```py
>>> list(objects.all()) # return a 'empty' generator
>>> list(objects.all()) # return a "empty" generator
[]
```

Expand Down
3 changes: 1 addition & 2 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ def schema(cls):
db.commit()
objects = Post.manager()
objects.save(Post('Hello World'))
assert(objects.get(2).public == {
'text': 'Hello World', 'id': 2})
assert(objects.get(2).public == {'text': 'Hello World', 'id': 2})
db.close()
assert(list(objects.all()) == [])
finally:
Expand Down

0 comments on commit dab7347

Please sign in to comment.