Skip to content

Commit

Permalink
style: imports ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
fstagni committed Aug 28, 2024
1 parent 52e69e4 commit e7a3edf
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 359 deletions.
19 changes: 4 additions & 15 deletions src/DIRAC/DataManagementSystem/Client/test/Test_FTS3Objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,14 @@
from unittest import mock

import pytest
import tempfile
import errno
import DIRAC

from DIRAC.tests.Utilities.utils import generateDIRACConfig

from DIRAC.ConfigurationSystem.private.ConfigurationClient import ConfigurationClient
from DIRAC.ConfigurationSystem.Client.ConfigurationData import gConfigurationData
from diraccfg import CFG
from DIRAC.DataManagementSystem.private.FTS3Plugins.DefaultFTS3Plugin import DefaultFTS3Plugin
import DIRAC
from DIRAC import S_OK
from DIRAC.Core.Utilities.DErrno import cmpError

from DIRAC.Resources.Storage.StorageBase import StorageBase

from DIRAC.DataManagementSystem.Client.FTS3Job import FTS3Job
from DIRAC.DataManagementSystem.Client.FTS3File import FTS3File
from DIRAC.DataManagementSystem.Client.FTS3Operation import FTS3Operation

from DIRAC.DataManagementSystem.Client.FTS3Job import FTS3Job
from DIRAC.Resources.Storage.StorageBase import StorageBase
from DIRAC.tests.Utilities.utils import generateDIRACConfig

DIRAC.gLogger.setLevel("DEBUG")
# pylint: disable=redefined-outer-name
Expand Down
308 changes: 0 additions & 308 deletions src/DIRAC/DataManagementSystem/Client/test/Test_SE.py

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import os
import tempfile
from unittest import mock

import mock
import pytest
from diraccfg import CFG

Expand Down Expand Up @@ -343,10 +343,8 @@ def test_multiHop_specificLink(fts3Plugin):
assert hopName == "CERN-RAW-CNAF-DST"


def test_multiHop_specificSrc_baseSEDst(mocker, fts3Plugin):
def test_multiHop_specificSrc_baseSEDst(fts3Plugin):
"""When we have a specific source and a baseSE dest"""
# mocker.patch("DIRAC.DataManagementSystem.private.FTS3Plugins.DefaultFTS3Plugin.StorageElement", return_value=mock.MagicMock())

hopName = fts3Plugin.findMultiHopSEToCoverUpForWLCGFailure("CERN-RAW", "CNAF_MC-DST")
assert hopName == "CERN-RAW-CNAF-Disk"

Expand Down
11 changes: 5 additions & 6 deletions src/DIRAC/Interfaces/API/DiracAdmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,19 @@
"""
import os

from DIRAC import gLogger, gConfig, S_OK, S_ERROR
from DIRAC.Core.Utilities.PromptUser import promptUser
from DIRAC.Core.Base.API import API
from DIRAC import S_ERROR, S_OK, gConfig, gLogger
from DIRAC.ConfigurationSystem.Client.CSAPI import CSAPI
from DIRAC.ConfigurationSystem.Client.Helpers.Registry import getVOForGroup
from DIRAC.Core.Base.API import API
from DIRAC.Core.Security.ProxyInfo import getProxyInfo
from DIRAC.FrameworkSystem.Client.ProxyManagerClient import gProxyManager
from DIRAC.Core.Utilities.PromptUser import promptUser
from DIRAC.FrameworkSystem.Client.NotificationClient import NotificationClient
from DIRAC.FrameworkSystem.Client.ProxyManagerClient import gProxyManager
from DIRAC.ResourceStatusSystem.Client.ResourceStatusClient import ResourceStatusClient
from DIRAC.ResourceStatusSystem.Client.ResourceStatus import ResourceStatus
from DIRAC.ResourceStatusSystem.Client.SiteStatus import SiteStatus
from DIRAC.WorkloadManagementSystem.Client.JobManagerClient import JobManagerClient
from DIRAC.WorkloadManagementSystem.Client.WMSAdministratorClient import WMSAdministratorClient
from DIRAC.WorkloadManagementSystem.Client.PilotManagerClient import PilotManagerClient
from DIRAC.WorkloadManagementSystem.Client.WMSAdministratorClient import WMSAdministratorClient

voName = ""
ret = getProxyInfo(disableVOMS=True)
Expand Down
Loading

0 comments on commit e7a3edf

Please sign in to comment.