Merge branch 'misc-tests' into user-view

This commit is contained in:
Mouse Reeve
2022-01-27 19:39:19 -08:00
39 changed files with 1516 additions and 867 deletions

View File

@ -1,4 +1,5 @@
""" test for app action functionality """
import os
import json
from unittest.mock import patch
@ -207,3 +208,6 @@ class FederationViews(TestCase):
created = models.FederatedServer.objects.get(server_name="server.name")
self.assertEqual(created.status, "blocked")
self.assertEqual(created.notes, "https://explanation.url")
# remove file.json after test
os.remove("file.json")