Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
northdpole committed Nov 15, 2023
1 parent 2358f0b commit 350ace8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion application/cmd/cre_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
secure_headers,
pci_dss,
juiceshop,
cloud_native_security_controls
cloud_native_security_controls,
)
from application.prompt_client import prompt_client as prompt_client
from application.utils import gap_analysis
Expand Down
8 changes: 4 additions & 4 deletions application/frontend/src/test/basic-e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('App.js', () => {
jest.setTimeout(1000000);
browser = await puppeteer.launch(debug);
page = await browser.newPage();
page.setDefaultTimeout(15000)
page.setDefaultTimeout(15000);
});

it('contains the welcome text', async () => {
Expand Down Expand Up @@ -42,7 +42,7 @@ describe('App.js', () => {
await page.waitForSelector('.content');
const text = await page.$eval('.content', (e) => e.textContent);
expect(text).not.toContain('No results match your search term');

await page.waitForSelector('.standard-page__links-container');
const results = await page.$$('.standard-page__links-container');
expect(results.length).toBeGreaterThan(1);
Expand All @@ -61,7 +61,7 @@ describe('App.js', () => {
expect(text).not.toContain('No results match your search term');

await page.waitForSelector('.standard-page__links-container');

// title match
const page_title = await page.$eval('.standard-page__heading', (e) => e.textContent);
expect(page_title).toContain('ASVS');
Expand Down Expand Up @@ -109,7 +109,7 @@ describe('App.js', () => {
await page.waitForSelector('.content');
const text = await page.$$('.content', (e) => e.textContent);
expect(text).not.toContain('No results match your search term');

await page.waitForSelector('.standard-page__links-container');

// title match
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)


def parse(
cache: db.Node_collection,
):
Expand All @@ -31,14 +32,14 @@ def parse(
return
entries = csv.DictReader(StringIO(resp.text), delimiter=",")
for entry in entries:

cnsc = defs.Standard(
description=entry.get("Control Implementation"),
name="Cloud Native Security Controls",
section=entry.get("Section"),
sectionID=entry.get("ID"),
subsection=entry.get("Control Title"),
hyperlink="https://github.com/cloud-native-security-controls/controls-catalog/blob/main/controls/controls_catalog.csv#L"+entry.get("ID"),
hyperlink="https://github.com/cloud-native-security-controls/controls-catalog/blob/main/controls/controls_catalog.csv#L"
+ entry.get("ID"),
version=entry.get("Originating Document"),
)
existing = cache.get_nodes(
Expand All @@ -64,7 +65,7 @@ def parse(
)
cres = cache.find_cres_of_node(dbstandard)
if cres:
cre_id = cres[0].id
cre_id = cres[0].id
cre = cache.get_cre_by_db_id(cre_id)
cnsc_copy = cnsc.shallow_copy()
cnsc_copy.description = ""
Expand Down

0 comments on commit 350ace8

Please sign in to comment.