title: How to mock an aws library GlueContext using python unittest
body: <p>unable to mock GlueContext from aws glue</p>
  <p>I have these lines of code</p>
  <pre><code>sc = SparkContext()
  gluecontext = GlueContext(sc)
  spark = gluecontext.spark_session
  </code></pre>
  <p>How to mock gluecontext using python unittest?</p>
  <p><a href="https://stackoverflow.com/questions/60919705/how-to-mock-in-a-python-unittest-a-library-not-installed-locally">How to mock in a python unittest a library not installed locally?</a></p>