import os
import json
import pytest

from laniakea.core.providers.packet import PacketManager

@pytest.fixture
def packet():
    with open(os.path.join(os.getcwd(), 'laniakea/examples/packet.json')) as fo:
        conf = json.loads(fo.read())
    return PacketManager(conf)

def test_list_projects(packet):
    for plan in packet.list_projects():
        assert hasattr(plan, 'name')
        assert hasattr(plan, 'id')

import os
import json
import pytest

from laniakea.core.providers.packet import PacketManager

#@pytest.fixture
#def packet():
#    with open(os.path.join(os.getcwd(), 'laniakea/examples/packet.json')) as fo:
#        conf = json.loads(fo.read())
#    return PacketManager(conf)


#def test_list_projects(packet):
#    for plan in packet.list_projects():
#        assert hasattr(plan, 'name')
#        assert hasattr(plan, 'id')

Disable dummy Packet test temporarily
Disable dummy Packet test temporarily

  import os
  import json
  import pytest
  
  from laniakea.core.providers.packet import PacketManager
  
- @pytest.fixture
+ #@pytest.fixture
- def packet():
+ #def packet():
-     with open(os.path.join(os.getcwd(), 'laniakea/examples/packet.json')) as fo:
+ #    with open(os.path.join(os.getcwd(), 'laniakea/examples/packet.json')) as fo:
-         conf = json.loads(fo.read())
+ #        conf = json.loads(fo.read())
-     return PacketManager(conf)
+ #    return PacketManager(conf)
  
- def test_list_projects(packet):
-     for plan in packet.list_projects():
-         assert hasattr(plan, 'name')
-         assert hasattr(plan, 'id')
  
+ #def test_list_projects(packet):
+ #    for plan in packet.list_projects():
+ #        assert hasattr(plan, 'name')
+ #        assert hasattr(plan, 'id')
+ 
Disable dummy Packet test temporarily
## Code Before:
import os
import json
import pytest

from laniakea.core.providers.packet import PacketManager

@pytest.fixture
def packet():
    with open(os.path.join(os.getcwd(), 'laniakea/examples/packet.json')) as fo:
        conf = json.loads(fo.read())
    return PacketManager(conf)

def test_list_projects(packet):
    for plan in packet.list_projects():
        assert hasattr(plan, 'name')
        assert hasattr(plan, 'id')

## Instruction:
Disable dummy Packet test temporarily
## Code After:
import os
import json
import pytest

from laniakea.core.providers.packet import PacketManager

#@pytest.fixture
#def packet():
#    with open(os.path.join(os.getcwd(), 'laniakea/examples/packet.json')) as fo:
#        conf = json.loads(fo.read())
#    return PacketManager(conf)


#def test_list_projects(packet):
#    for plan in packet.list_projects():
#        assert hasattr(plan, 'name')
#        assert hasattr(plan, 'id')
