django-whatever icon indicating copy to clipboard operation
django-whatever copied to clipboard

[Unmaintained] Unobtrusive test models creation for django

Results 17 django-whatever issues
Sort by recently updated
recently updated
newest added

1. [issues/32](https://github.com/coagulant/django-whatever/issues/32) fixed. 2. Generators are used instead of lists where possible (in `xunit.py` and `models.py` only). 3. `'',join(...)` is changed to `u''.join(...)` where possible (in `xunit.py` and `models.py` only)....

The set_seed decorator was returning a function with a **name** of "_wrapper" instead of the name of the function it was decorating. This caused tests to not be run under...

1. This code (from `tests/model_filefield`) ``` class ModelUploadToString(models.Model): file_field = models.FileField(upload_to='sample_subdir') class Meta: app_label = 'django_any' class FileFiledUploadTo(TestCase): def test_created_model_with_filefield_string_upload_to(self): model = any_model(ModelUploadToString) self.assertEqual(model.file_field, 'sample_file.txt') ``` will raise exception if:...

This ``` def any_date(from_date=date(1990, 1, 1), to_date=date.today()): ``` is not a very good idea. If the code runs for a lot of time, `to_date` won't be changing. At it [makes...

Should be strict about non-existent attributes

bug

Random value for `datetime_field_data` need to add timezone part for django 1.4 with `USE_TZ = True` in other case we have ``` RuntimeWarning: DateTimeField received a naive datetime (2011-06-28 22:16:29)...

I have in model ``` def upload_userfile_path(instance, filename): return 'files/%s/%s' % (instance.user.id, filename) class UserFile(models.Model): user = models.ForeignKey(User) file = models.FileField(upload_to=upload_userfile_path) ``` in test ``` user = any_model(User, is_active=True) any_model(UserFile,...

bug