class_docstr: Suite of CLI regression tests to be run against a release build of the Streamlit library.
  
  Before running, ensure that you have:
      - An isolated environment with Streamlit installed in production mode (not development) as
        well as pytest. This can include the current version, nightly, or local build/wheel, like
        one of the following:
              pip install streamlit-nightly=[nightly tag]
              pip install lib/dist/<WHEEL_FILE>
              pip install streamlit
      - The STREAMLIT_RELEASE_VERSION environment variable must be set, such as:
              export STREAMLIT_RELEASE_VERSION=1.5.1
  
  You can then run the tests from the root of the Streamlit repository using one of the following:
          pytest scripts/cli_regression_tests.py
          make cli-regression-tests
  
  This test suite makes use of Python's built-in assert statement. Note that assertions in the
  form of `assert <expression>` use Pytest's assertion introspection. In some cases, a more clear
  error message is specified manually by using `assert <expression>, <message>`. See
  https://docs.pytest.org/en/7.0.x/how-to/assert.html#assert-details for more details.
class_docstr_tok: ["Suite","of","CLI","regression","tests","to","be","run","against","a","release","build","of","the","Streamlit","library",".","Before","running",",","ensure","that","you","have",":","-","An","isolated","environment","with","Streamlit","installed","in","production","mode","(","not","development",")","as","well","as","pytest",".","This","can","include","the","current","version",",","nightly",",","or","local","build\/wheel",",","like","one","of","the","following",":","pip","install","streamlit-nightly=","[","nightly","tag","]","pip","install","lib\/dist\/","<","WHEEL_FILE",">","pip","install","streamlit","-","The","STREAMLIT_RELEASE_VERSION","environment","variable","must","be","set",",","such","as",":","export","STREAMLIT_RELEASE_VERSION=1.5.1","You","can","then","run","the","tests","from","the","root","of","the","Streamlit","repository","using","one","of","the","following",":","pytest","scripts\/cli_regression_tests.py","make","cli-regression-tests","This","test","suite","makes","use","of","Python","'s","built-in","assert","statement",".","Note","that","assertions","in","the","form","of","`","assert","<","expression",">","`","use","Pytest","'s","assertion","introspection",".","In","some","cases",",","a","more","clear","error","message","is","specified","manually","by","using","`","assert","<","expression",">",",","<","message",">","`",".","See","https",":","\/\/docs.pytest.org\/en\/7.0.x\/how-to\/assert.html","#","assert-details","for","more","details","."]
code: def run_command(self, command):
      return subprocess.check_output(self.parameterize(command)).decode(
          "UTF-8"
      )
  
file_path: streamlit/scripts/cli_regression_tests.py
imports: import os
  import signal
  import subprocess
  from typing import Optional
  import pytest
label_desc: Use image node_id 4 for calling the TestCLIRegressions obj's underlying member method code with example usage: obj.run_command(command) and returns: subprocess