Skip to content

Commit

Permalink
Merge pull request #166 from canattofilipe/should-not-prettify-json-dev
Browse files Browse the repository at this point in the history
Change JSONIFY_PRETTYPRINT_REGULAR flask property to false [Dev]
  • Loading branch information
canattofilipe committed Sep 28, 2020
2 parents 36292ea + ee8904e commit 4648526
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions DeviceManager/app.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from flask import Flask

app = Flask(__name__)
app.config['JSONIFY_PRETTYPRINT_REGULAR'] = False
9 changes: 9 additions & 0 deletions tests/test_app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import unittest

from DeviceManager.app import app


class TestApp(unittest.TestCase):

def test_should_use_JSONIFY_PRETTYPRINT_REGULAR_property_off(self):
self.assertFalse(app.config['JSONIFY_PRETTYPRINT_REGULAR'])

0 comments on commit 4648526

Please sign in to comment.