Lines Matching full:environment
14 """Tests for env_setup.environment.
16 This tests the error-checking, context manager, and written environment scripts
17 of the Environment class.
19 Tests that end in "_ctx" modify the environment and validate it in-process.
21 Tests that end in "_written" write the environment to a file intended to be
22 evaluated by the shell, then launches the shell and then saves the environment.
23 This environment is then validated in the test process.
34 from pw_env_setup import environment
44 """Write env to a file then evaluate and save the resulting environment.
47 and dumps the environment to stdout. Parse that output into a dict and
51 env(environment.Environment): environment to write out
53 Returns dictionary of resulting environment.
68 # environment, no need to call 'source' or '.'.
78 # Parse environment from stdout of subprocess.
84 # environment variables. This module does not allow that so we can
97 """Tests for env_setup.environment."""
99 self.env = environment.Environment()
190 with self.assertRaises(environment.BadNameType):
194 with self.assertRaises(environment.BadValueType):
198 with self.assertRaises(environment.BadNameType):
202 with self.assertRaises(environment.BadValueType):
206 with self.assertRaises(environment.BadNameType):
210 with self.assertRaises(environment.BadValueType):
214 with self.assertRaises(environment.BadVariableName):
218 with self.assertRaises(environment.BadVariableName):
222 with self.assertRaises(environment.BadVariableName):
226 with self.assertRaises(environment.BadVariableName):
230 with self.assertRaises(environment.BadVariableName):
234 with self.assertRaises(environment.EmptyValue):
238 with self.assertRaises(environment.NewlineInValue):
242 with self.assertRaises(environment.BadVariableValue):
247 """Tests for env_setup.environment."""
266 self.env = environment.Environment(windows=self.windows,
448 env = environment.Environment()