diff options
| author | Jonathan Ellis <jbellis@gmail.com> | 2006-07-21 16:43:32 +0000 |
|---|---|---|
| committer | Jonathan Ellis <jbellis@gmail.com> | 2006-07-21 16:43:32 +0000 |
| commit | 8c5ed66843b3edae7b76752a4733fa2b32669721 (patch) | |
| tree | c31bfc4fd85f099a731c691e6d27e15a81ab9fb4 /test | |
| parent | 7f87262894d26e111d72b1f948bd4faef84ff4d4 (diff) | |
| download | sqlalchemy-8c5ed66843b3edae7b76752a4733fa2b32669721.tar.gz | |
add test for allow_null_pks
Diffstat (limited to 'test')
| -rw-r--r-- | test/orm/mapper.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/orm/mapper.py b/test/orm/mapper.py index 146099815..5cf665fd4 100644 --- a/test/orm/mapper.py +++ b/test/orm/mapper.py @@ -256,6 +256,13 @@ class MapperTest(MapperSuperTest): q = create_session().query(m) q.select_by(email_address='foo') + def testjoinbyfk(self): + class UserWithAddress(object): + pass + j = join(users, addresses, isouter=True) + m = mapper(UserWithAddress, j, allow_null_pks=True) + q = create_session().query(m) + def testjoinvia(self): m = mapper(User, users, properties={ 'orders':relation(mapper(Order, orders, properties={ |
