-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix 500 on panorama building save (for real this time) (#622)
- Loading branch information
1 parent
912984a
commit dfa0125
Showing
2 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from django.test import TestCase | ||
|
||
from meshapi.widgets import PanoramaViewer | ||
|
||
|
||
class TestPanoramaViewer(TestCase): | ||
def setUp(self): | ||
pass | ||
|
||
def test_pano_get_context(self): | ||
PanoramaViewer.pano_get_context("test", '["blah", "blah2"]') | ||
|
||
def test_pano_get_context_bad_value(self): | ||
PanoramaViewer.pano_get_context("test", 100) # type: ignore | ||
PanoramaViewer.pano_get_context("test", None) # type: ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters