From d6a56da4419742b7305c3a4a52108833945102a7 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sat, 16 May 2020 21:15:14 +1000 Subject: [PATCH] PEP fixes --- InvenTree/stock/models.py | 4 ++-- InvenTree/stock/tests.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/InvenTree/stock/models.py b/InvenTree/stock/models.py index 4ccbd74b5a..a73c7e0a76 100644 --- a/InvenTree/stock/models.py +++ b/InvenTree/stock/models.py @@ -1113,11 +1113,11 @@ class StockItemTestResult(models.Model): user = models.ForeignKey( User, - on_delete = models.SET_NULL, + on_delete=models.SET_NULL, blank=True, null=True ) date = models.DateTimeField( auto_now_add=True, editable=False - ) \ No newline at end of file + ) diff --git a/InvenTree/stock/tests.py b/InvenTree/stock/tests.py index a2bb4d4bb4..8fce455a97 100644 --- a/InvenTree/stock/tests.py +++ b/InvenTree/stock/tests.py @@ -430,4 +430,4 @@ class TestResultTest(StockTest): self.assertEqual(len(result_map), 3) for test in ['Firmware Version', 'Settings Checksum', 'Temperature Test']: - self.assertIn(test, result_map.keys()) \ No newline at end of file + self.assertIn(test, result_map.keys())