Mercurial > public > sg101
view bio/tests/test_flags.py @ 1231:bbabbbb80d60 modernize tip
Add unit test for S3 upload of images.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 20 Apr 2025 19:15:39 -0500 |
parents | f354554afb6e |
children |
line wrap: on
line source
""" Unit tests for the bio flag utility. """ from django.test import TestCase class FlagsTestCase(TestCase): def test_flag_loading(self): import bio.flags # Just make sure we have data and didn't blow up. self.assertNotEqual(len(bio.flags.FLAG_DATA), 0) self.assertNotEqual(len(bio.flags.FLAG_CHOICES), 0) self.assertEqual(len(bio.flags.FLAG_DATA), len(bio.flags.FLAG_CHOICES))