Skip to content

Commit

Permalink
fix: import subprocess
Browse files Browse the repository at this point in the history
  • Loading branch information
nagisa committed Jan 17, 2025
1 parent c4b50dd commit 552dc15
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pytest/lib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import time
import typing
import requests
import subprocess
from prometheus_client.parser import text_string_to_metric_families
from retrying import retry
from rc import gcloud
Expand Down Expand Up @@ -245,9 +246,10 @@ def load_binary_file(filepath):
def load_test_contract(
filename: str = 'backwards_compatible_rs_contract.wasm') -> bytearray:
"""Loads a WASM file from near-test-contracts package."""
output = subprocess.check_output(['cargo', 'run', '-p', 'near-test-contracts', filename],
cwd=_REPO_DIR)
return output.stdout
output = subprocess.check_output(
['cargo', 'run', '-p', 'near-test-contracts', filename], cwd=_REPO_DIR)
return output


def user_name():
username = os.getlogin()
Expand Down

0 comments on commit 552dc15

Please sign in to comment.