File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ This project adheres to [Semantic Versioning](http://semver.org/).
7
7
### Changed
8
8
- [ #1035 ] ( https://github.com/plotly/dash/pull/1035 ) Simplify our build process.
9
9
10
+ ### Fixed
11
+ - [ #1037 ] ( https://github.com/plotly/dash/pull/1037 ) Fix no_update test to allow copies, such as those stored and retrieved from a cache.
12
+
10
13
## [ 1.7.0] - 2019-11-27
11
14
### Added
12
15
- [ #967 ] ( https://github.com/plotly/dash/pull/967 ) Add support for defining
Original file line number Diff line number Diff line change @@ -1357,7 +1357,7 @@ def add_context(*args, **kwargs):
1357
1357
has_update = False
1358
1358
for i , o in enumerate (output ):
1359
1359
val = output_value [i ]
1360
- if val is not no_update :
1360
+ if not isinstance ( val , _NoUpdate ) :
1361
1361
has_update = True
1362
1362
o_id , o_prop = o .component_id , o .component_property
1363
1363
component_ids [o_id ][o_prop ] = val
@@ -1367,7 +1367,7 @@ def add_context(*args, **kwargs):
1367
1367
1368
1368
response = {"response" : component_ids , "multi" : True }
1369
1369
else :
1370
- if output_value is no_update :
1370
+ if isinstance ( output_value , _NoUpdate ) :
1371
1371
raise exceptions .PreventUpdate
1372
1372
1373
1373
response = {
Original file line number Diff line number Diff line change 2
2
import datetime
3
3
import time
4
4
import pytest
5
+ from copy import copy
5
6
6
7
from bs4 import BeautifulSoup
7
8
from selenium .webdriver .common .keys import Keys
@@ -527,7 +528,8 @@ def show_clicks(n):
527
528
return [
528
529
no_update if n and n > 4 else n ,
529
530
no_update if n and n > 2 else n ,
530
- no_update ,
531
+ # make a new instance, to mock up caching and restoring no_update
532
+ copy (no_update ),
531
533
]
532
534
533
535
dash_duo .start_server (app )
You can’t perform that action at this time.
0 commit comments