old_contents: import os
  
  from webdriver_manager.config import Configuration
  
  expect_mz_latest = 'https://api.github.com/repos/mozilla/geckodriver/releases/latest'
  expect_mz_tag = 'https://api.github.com/repos/mozilla/geckodriver/releases/tags/{0}'
  expect_gh_token = ''
  
  
  def test_config_with_deafault_params():
      config = Configuration(config_folder=os.path.dirname(__file__), section="GeckoDriver")
      assert config.driver_latest_release_url == expect_mz_latest
      assert config.mozila_release_tag == expect_mz_tag
      assert config.gh_token == expect_gh_token
  
  
  def test_config_variables_with_default_params():
      config = Configuration(section="GeckoDriver")
      assert config.gh_token == ''
      assert config.driver_latest_release_url == expect_mz_latest
      assert config.mozila_release_tag == expect_mz_tag
  
  
  def test_config_with_custom_file():
      config = Configuration(config_folder=os.path.dirname(__file__), file_name="wd_config.ini", section="GeckoDriver")
      assert config.gh_token == "test_token"
      assert config.driver_latest_release_url == "test_release"
new_contents: import os
  
  from webdriver_manager.config import Configuration
  
  expect_mz_latest = 'https://api.github.com/repos/mozilla/geckodriver/releases/latest'
  expect_mz_tag = 'https://api.github.com/repos/mozilla/geckodriver/releases/tags/{0}'
  expect_gh_token = ''
  
  
  def test_config_with_deafault_params():
      config = Configuration(config_folder=os.path.dirname(__file__), section="GeckoDriver", file_name="config.ini")
      assert config.driver_latest_release_url == expect_mz_latest
      assert config.mozila_release_tag == expect_mz_tag
      assert config.gh_token == expect_gh_token
  
  
  def test_config_variables_with_default_params():
      config = Configuration(section="GeckoDriver", file_name="",config_folder="")
      assert config.gh_token == ''
      assert config.driver_latest_release_url == expect_mz_latest
      assert config.mozila_release_tag == expect_mz_tag
  
  
  def test_config_with_custom_file():
      config = Configuration(config_folder=os.path.dirname(__file__), file_name="wd_config.ini", section="GeckoDriver")
      assert config.gh_token == "test_token"
      assert config.driver_latest_release_url == "test_release"
  
subject: test config tests fix