Skip to content

Commit

Permalink
Merge 8ccef6c into 44b384d
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] committed Jun 15, 2021
2 parents 44b384d + 8ccef6c commit 4f373eb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion app_test.py
@@ -1,5 +1,7 @@
"""Test app.py."""

import multiprocessing
import platform
import unittest
import requests
import os
Expand All @@ -13,6 +15,10 @@
from app import app


if platform.system() == "Darwin":
multiprocessing.set_start_method("fork")


class PysheeetTest(LiveServerTestCase):
"""Test app."""

Expand All @@ -37,7 +43,7 @@ def create_app(self):
def check_security_headers(self, resp):
"""Check security headers."""
headers = resp.headers
self.assertTrue("X-Content-Security-Policy" in headers)
self.assertTrue("Content-Security-Policy" in headers)
self.assertTrue("X-XSS-Protection" in headers)
self.assertTrue("X-Content-Type-Options" in headers)
self.assertTrue("Content-Security-Policy" in headers)
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Expand Up @@ -5,7 +5,7 @@ Flask==2.0.1
Flask-SSLify==0.1.5
Flask-Testing==0.8.1
Flask-SeaSurf==0.3.0
flask-talisman==0.7.0
flask-talisman==0.8.1
gunicorn==20.1.0
pycodestyle==2.7.0
pydocstyle==6.1.1
Expand Down

0 comments on commit 4f373eb

Please sign in to comment.