old_contents: import pytest
  from .utils import git_repo
  import os
  import glob
  import sys
  from wandb.meta import Meta
  from wandb.apis import InternalApi
  
  
  def test_meta(git_repo):
      sys.argv = ["foo", "bar"]
      meta = Meta(InternalApi())
      print(meta.data)
      assert meta.data["cpu_count"] > 0
      assert meta.data["git"]["commit"]
      assert meta.data["heartbeatAt"]
      assert meta.data["startedAt"]
      assert meta.data["host"]
      assert meta.data["root"] == os.getcwd()
      assert meta.data["email"]
      assert meta.data["python"]
      assert meta.data["program"]
      assert meta.data["args"] == ["bar"]
      assert meta.data["state"] == "running"
      assert meta.data["username"]
      assert meta.data["os"]
  
  
  def test_meta_thread(git_repo):
      meta = Meta(InternalApi(), "wandb")
      meta.start()
      meta.shutdown()
      print("GO", glob.glob("**"))
      assert os.path.exists("wandb/wandb-metadata.json")
  
new_contents: import pytest
  from .utils import git_repo
  import os
  import glob
  import sys
  from wandb.meta import Meta
  from wandb.apis import InternalApi
  
  
  def test_meta(git_repo):
      sys.argv = ["foo", "bar"]
      meta = Meta(InternalApi())
      print(meta.data)
      assert meta.data["cpu_count"] > 0
      assert meta.data["git"]["commit"]
      assert meta.data["heartbeatAt"]
      assert meta.data["startedAt"]
      assert meta.data["host"]
      assert meta.data["root"] == os.getcwd()
      assert meta.data["python"]
      assert meta.data["program"]
      assert meta.data["args"] == ["bar"]
      assert meta.data["state"] == "running"
      assert meta.data["username"]
      assert meta.data["os"]
  
  
  def test_meta_thread(git_repo):
      meta = Meta(InternalApi(), "wandb")
      meta.start()
      meta.shutdown()
      print("GO", glob.glob("**"))
      assert os.path.exists("wandb/wandb-metadata.json")
  
subject: Fix meta test