Skip to content

Commit

Permalink
Use NVD api key in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
J08nY committed Jun 10, 2024
1 parent b1c1c1c commit 54c9737
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_nvd_dataset_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def get_dataset_len(dset) -> int:
return len(dset["match_strings"])

config.preferred_source_nvd_datasets = "api"
with builder_class() as dataset_builder:
with builder_class(api_key=config.nvd_api_key) as dataset_builder:
dataset = dataset_builder._init_new_dataset()
assert dataset == default_dataset
last_update = dataset_builder._get_last_update_from_previous_data(dataset)
Expand Down

0 comments on commit 54c9737

Please sign in to comment.