hunk.code_window: DIST_PATH = Path(__file__).parent.parent / "fixtures" / "distributions"
   def test_file_dependency():
       dependency = FileDependency("demo", DIST_PATH / "demo-0.1.0.tar.gz")
       assert dependency.pretty_name == "demo"
       assert dependency.path == DIST_PATH / "demo-0.1.0.tar.gz"
       assert dependency.base_pep_508_name == "demo @ {}".format(
           DIST_PATH / "demo-0.1.0.tar.gz"
       )
   def test_file_dependency_wrong_path():
       with pytest.raises(ValueError):
           FileDependency("demo", DIST_PATH / "demo-0.2.0.tar.gz")
  
hunk.labels: keep keep keep replace replace replace replace replace replace replace replace replace replace keep keep keep keep
hunk.file_path: tests/packages/test_file_dependency.py
hunk.type: replace
file: [tool.poetry]
  name = "my-package"
  version = "1.2.3"
  description = "Some description."
  authors = [
      "Sébastien Eustace <sebastien@eustace.io>"
  ]
  license = "MIT"
  
  readme = "README.rst"
  
  homepage = "https://python-poetry.org/"
  repository = "https://github.com/python-poetry/poetry"
  documentation = "https://python-poetry.org/docs"
  
  keywords = ["packaging", "dependency", "poetry"]
  
  classifiers = [
      "Topic :: Software Development :: Build Tools",
      "Topic :: Software Development :: Libraries :: Python Modules"
  ]
  
  # Requirements
  [tool.poetry.dependencies]
  python = "^3.6"
  cleo = "^0.6"
  cachy = { version = "^0.2.0", extras = ["msgpack"] }
  
  pendulum = { version = "^1.4", optional = true }
  
  [tool.poetry.dev-dependencies]
  pytest = "~3.4"
  
  [tool.poetry.extras]
  time = ["pendulum"]
  
  [tool.poetry.scripts]
  my-script = "my_package:main"
  my-2nd-script = "my_package:main2"
  