File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
readthedocs/rtd_tests/tests Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -542,4 +542,15 @@ def test_create(self):
542
542
543
543
self .assertEqual (EnvironmentVariable .objects .count (), 1 )
544
544
self .assertEqual (EnvironmentVariable .objects .first ().name , 'MYTOKEN' )
545
- self .assertEqual (EnvironmentVariable .objects .first ().value , 'string here' )
545
+ self .assertEqual (EnvironmentVariable .objects .first ().value , "'string here'" )
546
+
547
+ data = {
548
+ 'name' : 'ESCAPED' ,
549
+ 'value' : r'string escaped here: #$\1[]{}\|' ,
550
+ }
551
+ form = EnvironmentVariableForm (data , project = self .project )
552
+ form .save ()
553
+
554
+ self .assertEqual (EnvironmentVariable .objects .count (), 2 )
555
+ self .assertEqual (EnvironmentVariable .objects .first ().name , 'ESCAPED' )
556
+ self .assertEqual (EnvironmentVariable .objects .first ().value , r"'string escaped here: #$\1[]{}\|'" )
You can’t perform that action at this time.
0 commit comments