From d7b0482abb3659df624cdfc535d250b07df0c3e2 Mon Sep 17 00:00:00 2001 From: Eridian <86061486+EridianAlpha@users.noreply.github.com> Date: Thu, 18 Apr 2024 09:48:51 +0100 Subject: [PATCH] Move test contracts --- {src => test}/testHelperContracts/AavePMUpgradeExample.sol | 2 +- {src => test}/testHelperContracts/InvalidOwner.sol | 2 +- {src => test}/testHelperContracts/InvalidUpgrade.sol | 0 test/unit/AavePMTest.t.sol | 6 +++--- 4 files changed, 5 insertions(+), 5 deletions(-) rename {src => test}/testHelperContracts/AavePMUpgradeExample.sol (95%) rename {src => test}/testHelperContracts/InvalidOwner.sol (95%) rename {src => test}/testHelperContracts/InvalidUpgrade.sol (100%) diff --git a/src/testHelperContracts/AavePMUpgradeExample.sol b/test/testHelperContracts/AavePMUpgradeExample.sol similarity index 95% rename from src/testHelperContracts/AavePMUpgradeExample.sol rename to test/testHelperContracts/AavePMUpgradeExample.sol index 9d91207..a942815 100644 --- a/src/testHelperContracts/AavePMUpgradeExample.sol +++ b/test/testHelperContracts/AavePMUpgradeExample.sol @@ -5,7 +5,7 @@ import {AccessControlUpgradeable} from "@openzeppelin/contracts-upgradeable/acce import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import {UUPSUpgradeable} from "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol"; -import {IAavePM} from "../interfaces/IAavePM.sol"; +import {IAavePM} from "../../src/interfaces/IAavePM.sol"; /// @title AavePM - Aave Position Manager /// @author EridianAlpha diff --git a/src/testHelperContracts/InvalidOwner.sol b/test/testHelperContracts/InvalidOwner.sol similarity index 95% rename from src/testHelperContracts/InvalidOwner.sol rename to test/testHelperContracts/InvalidOwner.sol index 66faa15..29eea6f 100644 --- a/src/testHelperContracts/InvalidOwner.sol +++ b/test/testHelperContracts/InvalidOwner.sol @@ -1,7 +1,7 @@ // SPDX-License-Identifier: MIT pragma solidity 0.8.24; -import "../AavePM.sol"; +import "../../src/AavePM.sol"; /// @notice This contract is used to test the .call functions failing in AavePM.sol /// @dev The test is found in AavePMTest.t.sol: diff --git a/src/testHelperContracts/InvalidUpgrade.sol b/test/testHelperContracts/InvalidUpgrade.sol similarity index 100% rename from src/testHelperContracts/InvalidUpgrade.sol rename to test/testHelperContracts/InvalidUpgrade.sol diff --git a/test/unit/AavePMTest.t.sol b/test/unit/AavePMTest.t.sol index b494e27..a48c961 100644 --- a/test/unit/AavePMTest.t.sol +++ b/test/unit/AavePMTest.t.sol @@ -13,9 +13,9 @@ import {AavePM} from "../../src/AavePM.sol"; import {IAavePM} from "../../src/interfaces/IAavePM.sol"; import {HelperConfig} from "../../script/HelperConfig.s.sol"; -import {InvalidOwner} from "../../src/testHelperContracts/InvalidOwner.sol"; -import {InvalidUpgrade} from "../../src/testHelperContracts/InvalidUpgrade.sol"; -import {AavePMUpgradeExample} from "../../src/testHelperContracts/AavePMUpgradeExample.sol"; +import {InvalidOwner} from "../testHelperContracts/InvalidOwner.sol"; +import {InvalidUpgrade} from "../testHelperContracts/InvalidUpgrade.sol"; +import {AavePMUpgradeExample} from "../testHelperContracts/AavePMUpgradeExample.sol"; import {DeployAavePM} from "../../script/DeployAavePM.s.sol";