Skip to content

Commit

Permalink
Add regression for delete tests
Browse files Browse the repository at this point in the history
  • Loading branch information
linkyndy committed Jun 4, 2019
1 parent 0be7588 commit 1c54495
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion tests/test_models.py
Expand Up @@ -353,9 +353,28 @@ def setUp(self):
super(DeleteTests, self).setUp()

class Artist(Model):
pass
belongs_to = ('Label',)
has_one = ('TrueFan',)
has_many = ('Fan',)
has_and_belongs_to_many = ('Band',)
self.Artist = Artist

class Label(Model):
pass
self.Label = Label

class TrueFan(Model):
pass
self.TrueFan = TrueFan

class Fan(Model):
pass
self.Fan = Fan

class Band(Model):
pass
self.Band = Band

create_tables()
create_indexes()

Expand Down

0 comments on commit 1c54495

Please sign in to comment.