# RunEnvironmentInfoSubject {.starlark-object} ## RunEnvironmentInfoSubject.environment {.starlark-signature} RunEnvironmentInfoSubject.environment() Creates a `DictSubject` to assert on the environment dict. Method: RunEnvironmentInfoSubject.environment {#runenvironmentinfosubject_environment_returns} RETURNS [¶](#runenvironmentinfosubject_environment_returns){.headerlink} : [`DictSubject`] of the str->str environment map. {.starlark-object} ## RunEnvironmentInfoSubject.inherited_environment {.starlark-signature} RunEnvironmentInfoSubject.inherited_environment() Creates a `CollectionSubject` to assert on the inherited_environment list. Method: RunEnvironmentInfoSubject.inherited_environment {#runenvironmentinfosubject_inherited_environment_returns} RETURNS [¶](#runenvironmentinfosubject_inherited_environment_returns){.headerlink} : [`CollectionSubject`] of [`str`]; from the [`RunEnvironmentInfo.inherited_environment`] list. {.starlark-object} ## RunEnvironmentInfoSubject.new {.starlark-signature} RunEnvironmentInfoSubject.new([info](#runenvironmentinfosubject_new_info), [meta](#runenvironmentinfosubject_new_meta)) Creates a new `RunEnvironmentInfoSubject` Method: RunEnvironmentInfoSubject.new {#runenvironmentinfosubject_new_parameters} **PARAMETERS** [¶](#runenvironmentinfosubject_new_parameters){.headerlink} {.params-box} :[info[¶](#runenvironmentinfosubject_new_info){.headerlink}]{.span}: []{#runenvironmentinfosubject_new_info} ([`RunEnvironmentInfo`]) provider instance. :[meta[¶](#runenvironmentinfosubject_new_meta){.headerlink}]{.span}: []{#runenvironmentinfosubject_new_meta} ([`ExpectMeta`]) of call chain information. [`Action`]: https://bazel.build/rules/lib/Action [`ActionSubject`]: /api/action_subject [`bool`]: https://bazel.build/rules/lib/bool [`BoolSubject`]: /api/bool_subject [`CollectionSubject`]: /api/collection_subject [`depset`]: https://bazel.build/rules/lib/depset [`DepsetFileSubject`]: /api/depset_file_subject [`dict`]: https://bazel.build/rules/lib/dict [`DictSubject`]: /api/dict_subject [`Expect`]: /api/expect [`ExpectMeta`]: /api/expect_meta [`File`]: https://bazel.build/rules/lib/File [`FileSubject`]: /api/file_subject [`format_str`]: /api/expect_meta.html#expectmeta-format-str [`IntSubject`]: /api/int_subject [`Label`]: https://bazel.build/rules/lib/Label [`LabelSubject`]: /api/label_subject [`list`]: https://bazel.build/rules/lib/list [`Ordered`]: /api/ordered [`RunfilesSubject`]: /api/runfiles_subject [`str`]: https://bazel.build/rules/lib/string [`struct`]: https://bazel.build/rules/lib/builtins/struct [`StrSubject`]: /api/str_subject [`StructSubject`]: /api/struct_subject [`Target`]: https://bazel.build/rules/lib/Target [`TargetSubject`]: /api/target_subject [target-name]: https://bazel.build/concepts/labels#target-names [attr-label]: https://bazel.build/concepts/labels