Skip to content

Commit

Permalink
more test updates
Browse files Browse the repository at this point in the history
  • Loading branch information
awaelchli committed Mar 5, 2024
1 parent 3eb8db7 commit b831a0f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/test_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def test_adapter_bitsandbytes(monkeypatch, tmp_path, fake_checkpoint_dir, alpaca
monkeypatch.setattr(module, "fit", train_mock)

stdout = StringIO()
with redirect_stdout(stdout):
with redirect_stdout(stdout), mock.patch("sys.argv", ["adapter.py"]):
module.setup(
data=Alpaca(
download_dir=alpaca_path.parent,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_adapter_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def test_adapter_v2_bitsandbytes(monkeypatch, tmp_path, fake_checkpoint_dir, alp
monkeypatch.setattr(module, "fit", train_mock)

stdout = StringIO()
with redirect_stdout(stdout):
with redirect_stdout(stdout), mock.patch("sys.argv", ["adapter_v2.py"]):
module.setup(
data=Alpaca(
download_dir=alpaca_path.parent,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_lora.py
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ def test_lora_bitsandbytes(monkeypatch, tmp_path, fake_checkpoint_dir, alpaca_pa
monkeypatch.setattr(module, "fit", train_mock)

stdout = StringIO()
with redirect_stdout(stdout):
with redirect_stdout(stdout), mock.patch("sys.argv", ["full.py"]):
module.setup(
data=Alpaca(
download_dir=alpaca_path.parent,
Expand Down

0 comments on commit b831a0f

Please sign in to comment.