code: def test_pygit_add(pygit_repo_wrap):
      """Tests the add functionality of the PyGit class"""
      assert str(pygit_repo_wrap.path.parent.stem) == ".wgit"
  
      repo = pygit_repo_wrap.repo
      # File status 128 in pygit2 signifies file has Not been added yet
      assert repo.status()[".gitignore"] == 128
      assert repo.status()["test_file_1.pt"] == 128
      assert repo.status()["test_file_2.pt"] == 128
      pygit_repo_wrap.add()
      # File status 1 in pygit2 signifies file has been added to git repo
      assert repo.status()[".gitignore"] == 1
      assert repo.status()["test_file_1.pt"] == 1
      assert repo.status()["test_file_2.pt"] == 1
  
file_path: fairscale/tests/experimental/wgit/test_pygit.py
imports: from pathlib import Path
  import shutil
  import pytest
  from fairscale.experimental.wgit.pygit import PyGit
label_desc: Use image node_id 4 for calling a global function with example usage: test_pygit_add(pygit_repo_wrap) without return types