Re: [Pharo-users] how to change data on real data but not on test data
Dec. 28, 2019
8:46 p.m.
Pharo Smalltalk Users mailing list wrote
so to be clear. In the test are data given which not has to be changed. As soon as you have to solve the real problem , some data needs to be changed.
It's difficult to give good design advice with such a partial picture of the domain, but two straightforward solutions might be: 1. self isDeploymentMode ifTrue: [ "change data" ] 2. or, self sanitizationStrategy: (NoSanitization | ProductionSanitization) ----- Cheers, Sean -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
2407
Age (days ago)
2407
Last active (days ago)
1 comments
2 participants
participants (2)
-
Roelof Wobben -
Sean P. DeNigris