|
4 | 4 | from bson.binary import Binary |
5 | 5 | from django.conf import settings |
6 | 6 | from django.db import connections |
7 | | -from django.test import override_settings, skipUnlessDBFeature |
| 7 | +from django.test import override_settings |
8 | 8 |
|
9 | 9 | from .models import ( |
10 | 10 | Appointment, |
|
18 | 18 | from .test_base import QueryableEncryptionTestCase |
19 | 19 |
|
20 | 20 |
|
21 | | -@skipUnlessDBFeature("supports_queryable_encryption") |
22 | 21 | @override_settings(DATABASE_ROUTERS=[TestEncryptedRouter()]) |
23 | 22 | class QueryableEncryptionFieldTests(QueryableEncryptionTestCase): |
24 | | - databases = {"default", "encrypted"} |
25 | | - available_apps = ["encryption_"] |
26 | | - |
27 | | - def setUp(self): |
28 | | - self.appointment = Appointment.objects.create(time="8:00") |
29 | | - self.billing = Billing.objects.create( |
30 | | - cc_type="Visa", cc_number=1234567890123456, account_balance=100.50 |
31 | | - ) |
32 | | - self.portal_user = PatientPortalUser.objects.create( |
33 | | - ip_address="127.0.0.1", |
34 | | - url="https://example.com", |
35 | | - ) |
36 | | - self.patientrecord = PatientRecord.objects.create( |
37 | | - ssn="123-45-6789", |
38 | | - birth_date="1970-01-01", |
39 | | - profile_picture=b"image data", |
40 | | - weight=175.5, |
41 | | - patient_age=47, |
42 | | - ) |
43 | | - self.patient = Patient.objects.create( |
44 | | - patient_id=1, |
45 | | - patient_name="John Doe", |
46 | | - patient_notes="patient notes " * 25, |
47 | | - registration_date=datetime(2023, 10, 1, 12, 0, 0), |
48 | | - is_active=True, |
49 | | - email="john.doe@example.com", |
50 | | - ) |
51 | | - |
52 | | - # TODO: Embed billing and patient_record models in patient model |
53 | | - # then add tests |
54 | | - |
55 | 23 | def test_appointment(self): |
56 | 24 | self.assertEqual(Appointment.objects.get(time="8:00").time, time(8, 0)) |
57 | 25 |
|
|
0 commit comments